Belemort commited on
Commit
411cbbd
1 Parent(s): d5c8da9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
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