Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,16 @@ import io
|
|
12 |
import base64
|
13 |
import mimetypes
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
# Set environment variables for Tavily API
|
16 |
os.environ["TAVILY_API_KEY"] = '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'
|
17 |
|
|
|
12 |
import base64
|
13 |
import mimetypes
|
14 |
|
15 |
+
|
16 |
+
UPLOAD_FOLDER = 'uploads'
|
17 |
+
application.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
|
18 |
+
if not os.path.exists(UPLOAD_FOLDER):
|
19 |
+
os.makedirs(UPLOAD_FOLDER)
|
20 |
+
UPLOAD_FOLDER = 'static'
|
21 |
+
application.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
|
22 |
+
if not os.path.exists(UPLOAD_FOLDER):
|
23 |
+
os.makedirs(UPLOAD_FOLDER)
|
24 |
+
|
25 |
# Set environment variables for Tavily API
|
26 |
os.environ["TAVILY_API_KEY"] = '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'
|
27 |
|