Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to parse: text error #18

Open
joon-at-sri opened this issue Oct 16, 2024 · 5 comments
Open

Failed to parse: text error #18

joon-at-sri opened this issue Oct 16, 2024 · 5 comments

Comments

@joon-at-sri
Copy link

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

@cahya-wirawan
Copy link

I get the same problem

@cahya-wirawan
Copy link

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
Copy link

cahya-wirawan commented Oct 20, 2024

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
Copy link

qkxie commented Oct 22, 2024

image

@WaleedChughtai30
Copy link

any fix for this ?
I have the same error "Failed to parse: text error" ,while using on docker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants