Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ async def extract(file: UploadFile = File(...)):
|
|
| 29 |
with open(file_path, "wb") as buffer:
|
| 30 |
shutil.copyfileobj(file.file, buffer)
|
| 31 |
|
| 32 |
-
|
| 33 |
-
result = process_whole_doc(file_path)
|
| 34 |
|
| 35 |
return {"result": result}
|
|
|
|
| 29 |
with open(file_path, "wb") as buffer:
|
| 30 |
shutil.copyfileobj(file.file, buffer)
|
| 31 |
|
| 32 |
+
result = process_document(file_path)
|
| 33 |
+
# result = process_whole_doc(file_path)
|
| 34 |
|
| 35 |
return {"result": result}
|