Spaces:
Runtime error
Runtime error
test
Browse files- app/main.py +1 -1
app/main.py
CHANGED
@@ -61,7 +61,7 @@ async def parse_body(request: Request):
|
|
61 |
def upload(data: bytes = Depends(parse_body)):
|
62 |
if data:
|
63 |
try:
|
64 |
-
path = f"{files_dir}/file"
|
65 |
with open(path, "wb") as f:
|
66 |
f.write(data)
|
67 |
session_assistant.ingest(files_dir)
|
|
|
61 |
def upload(data: bytes = Depends(parse_body)):
|
62 |
if data:
|
63 |
try:
|
64 |
+
path = f"{files_dir}/file.pdf"
|
65 |
with open(path, "wb") as f:
|
66 |
f.write(data)
|
67 |
session_assistant.ingest(files_dir)
|