Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ async def upload_file(file: UploadFile = File(...)):
|
|
| 44 |
|
| 45 |
print("[TMP PATH]", str(tmp_path))
|
| 46 |
|
| 47 |
-
loader = DoclingLoader(file_path="
|
| 48 |
docs = loader.load()
|
| 49 |
# docs = docs.model_dump()
|
| 50 |
return {
|
|
|
|
| 44 |
|
| 45 |
print("[TMP PATH]", str(tmp_path))
|
| 46 |
|
| 47 |
+
loader = DoclingLoader(file_path="" + str(tmp_path), export_type=ExportType.MARKDOWN)
|
| 48 |
docs = loader.load()
|
| 49 |
# docs = docs.model_dump()
|
| 50 |
return {
|