jonathanjordan21 commited on
Commit
7d48373
·
verified ·
1 Parent(s): a0f6239

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -41,8 +41,10 @@ async def upload_file(file: UploadFile = File(...)):
41
  # Debug: check if file is valid
42
  size = os.path.getsize(tmp_path)
43
  print(f"Saved {file.filename} -> {tmp_path} ({size} bytes)")
 
 
44
 
45
- loader = DoclingLoader(file_path=str(tmp_path), export_type=ExportType.MARKDOWN)
46
  docs = loader.load()
47
  # docs = docs.model_dump()
48
  return {
 
41
  # Debug: check if file is valid
42
  size = os.path.getsize(tmp_path)
43
  print(f"Saved {file.filename} -> {tmp_path} ({size} bytes)")
44
+
45
+ print("[TMP PATH]", str(tmp_path))
46
 
47
+ loader = DoclingLoader(file_path="/tmp/" + str(tmp_path), export_type=ExportType.MARKDOWN)
48
  docs = loader.load()
49
  # docs = docs.model_dump()
50
  return {