This commit is contained in:
parent
a85af725fe
commit
a1989520d4
1 changed files with 2 additions and 1 deletions
|
|
@ -25,7 +25,8 @@ async def convert(file: UploadFile = File(...)):
|
|||
|
||||
os.remove(temp_file_path)
|
||||
|
||||
return FileResponse(output_file_path, filename=f"{os.path.splitext(file.filename)[0]}.md")
|
||||
# return FileResponse(output_file_path, filename=f"{os.path.splitext(file.filename)[0]}.md")
|
||||
return {"markdown": result.text_content}
|
||||
|
||||
except Exception as e:
|
||||
raise HTTPException(status_code=500, detail=str(e))
|
||||
|
|
|
|||
Loading…
Reference in a new issue