adityasugandhi commited on
Commit
5434fd6
1 Parent(s): 971cc91
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -4,6 +4,13 @@ from dataloader import DataLoader
4
  import logging
5
  app = Flask(__name__)
6
 
 
 
 
 
 
 
 
7
  UPLOAD_FOLDER = './data/'
8
  app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
9
 
 
4
  import logging
5
  app = Flask(__name__)
6
 
7
+
8
+ base_dir = Path(__file__).resolve().parent
9
+ haystack_dir = base_dir / '.haystack'
10
+
11
+ # Create the directory
12
+ haystack_dir.mkdir(parents=True, exist_ok=True)
13
+
14
  UPLOAD_FOLDER = './data/'
15
  app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
16