Open joon-at-sri opened 2 weeks ago
I get the same problem
It seems this is because http://localhost:8080/convert and other URLs are not found.
$ curl http://localhost:8080/health
{"detail":"Not Found"}
$ curl -X 'POST' \
'http://localhost:8080/convert' \
-H 'accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-F 'pdf_file=@filename.pdf;type=application/pdf'
{"detail":"Not Found"}
After I removed the gradio user interface in line 55 (server.py):
app = gr.mount_gradio_app(app, demo_ui, path="")
,
the rest api works.
The gradio path ("") should be changed to make the rest api and gradio user interface work together.
Im getting this error when trying to parse the pdf. I followed the simple server local setup.