Spaces:
Sleeping
Sleeping
WebashalarForML
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,13 @@ from utils.json_to_spacy import convert_json_to_spacy
|
|
8 |
from utils.model import train_model
|
9 |
import zipfile
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
app = Flask(__name__)
|
12 |
app.secret_key = 'your_secret_key'
|
13 |
|
|
|
8 |
from utils.model import train_model
|
9 |
import zipfile
|
10 |
|
11 |
+
|
12 |
+
os.umask(0o000)
|
13 |
+
|
14 |
+
print("Current user:", os.getuid())
|
15 |
+
print("Upload folder permissions:", os.stat(app.config['UPLOAD_FOLDER']).st_mode)
|
16 |
+
print("Trying to save file:", file_path)
|
17 |
+
|
18 |
app = Flask(__name__)
|
19 |
app.secret_key = 'your_secret_key'
|
20 |
|