Neurolingua
commited on
Commit
•
c8af05e
1
Parent(s):
49c0072
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ from twilio.rest import Client
|
|
12 |
app = Flask(__name__)
|
13 |
|
14 |
# ChromaDB path
|
15 |
-
CHROMA_PATH = '/
|
16 |
if not os.path.exists(CHROMA_PATH):
|
17 |
os.makedirs(CHROMA_PATH)
|
18 |
|
@@ -25,7 +25,7 @@ from_whatsapp_number = 'whatsapp:+14155238886'
|
|
25 |
|
26 |
# Download file utility
|
27 |
def download_file(url, ext):
|
28 |
-
local_filename = f'/
|
29 |
with requests.get(url, stream=True) as r:
|
30 |
with open(local_filename, 'wb') as f:
|
31 |
for chunk in r.iter_content(chunk_size=8192):
|
|
|
12 |
app = Flask(__name__)
|
13 |
|
14 |
# ChromaDB path
|
15 |
+
CHROMA_PATH = '/code/chroma_db'
|
16 |
if not os.path.exists(CHROMA_PATH):
|
17 |
os.makedirs(CHROMA_PATH)
|
18 |
|
|
|
25 |
|
26 |
# Download file utility
|
27 |
def download_file(url, ext):
|
28 |
+
local_filename = f'/code/uploaded_file{ext}'
|
29 |
with requests.get(url, stream=True) as r:
|
30 |
with open(local_filename, 'wb') as f:
|
31 |
for chunk in r.iter_content(chunk_size=8192):
|