Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,9 @@ app.secret_key = os.urandom(24)
|
|
23 |
UPLOAD_FOLDER = "uploads/"
|
24 |
VECTOR_DB_FOLDER = "VectorDB/"
|
25 |
NLTK_FOLDER = "nltk_data/"
|
|
|
26 |
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
|
|
|
27 |
os.makedirs(UPLOAD_FOLDER, exist_ok=True)
|
28 |
os.makedirs(VECTOR_DB_FOLDER, exist_ok=True)
|
29 |
os.makedirs(NLTK_FOLDER, exist_ok=True)
|
|
|
23 |
UPLOAD_FOLDER = "uploads/"
|
24 |
VECTOR_DB_FOLDER = "VectorDB/"
|
25 |
NLTK_FOLDER = "nltk_data/"
|
26 |
+
|
27 |
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
|
28 |
+
os.environ["MPLCONFIGDIR"] = "/tmp"
|
29 |
os.makedirs(UPLOAD_FOLDER, exist_ok=True)
|
30 |
os.makedirs(VECTOR_DB_FOLDER, exist_ok=True)
|
31 |
os.makedirs(NLTK_FOLDER, exist_ok=True)
|