demoPOC commited on
Commit
8f7c5ed
·
1 Parent(s): f9a221e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -30,6 +30,10 @@ import os
30
  from dotenv import load_dotenv
31
  load_dotenv()
32
 
 
 
 
 
33
 
34
  loader = UnstructuredFileLoader('Jio.txt', mode='elements')
35
  documents= loader.load()
 
30
  from dotenv import load_dotenv
31
  load_dotenv()
32
 
33
+ # Create a directory in a known location to save files to.
34
+ uploads_dir = os.path.join(app.root_path,'static', 'uploads')
35
+ os.makedirs(uploads_dir, exist_ok=True)
36
+
37
 
38
  loader = UnstructuredFileLoader('Jio.txt', mode='elements')
39
  documents= loader.load()