adithya-s-k / marker-api

Easily deployable 🚀 API to convert PDF to markdown quickly with high accuracy.
GNU General Public License v3.0
749 stars 73 forks source link

Failed to parse: text error #18

Open joon-at-sri opened 2 weeks ago

joon-at-sri commented 2 weeks ago

image Im getting this error when trying to parse the pdf. I followed the simple server local setup.

cahya-wirawan commented 1 week ago

I get the same problem

cahya-wirawan commented 1 week ago

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"}
cahya-wirawan commented 1 week ago

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.

qkxie commented 1 week ago
image