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

API /ask_url not working #85

Open
roman-huliak opened this issue Jun 22, 2023 · 0 comments
Open

API /ask_url not working #85

roman-huliak opened this issue Jun 22, 2023 · 0 comments

Comments

@roman-huliak
Copy link

roman-huliak commented Jun 22, 2023

Hello,
i'm trying to use API from docs but its not working.
Using docker image from: registry.hf.space/bhaskartripathi-pdfchatter:latest

http://localhost:7860/ask_url

response:

HTTP/1.1 404 Not Found
date: Wed, 21 Jun 2023 13:03:20 GMT
server: uvicorn
content-length: 22
content-type: application/json

{"detail":"Not Found"}

example request:

curl -X POST \
  'http://localhost:7860/ask_url' \ 
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "url": "https://example.com/files/5Z/IrggxxXB5u0hYoMfz8Cl.pdf",
  "question": "Question",
  "envs": {
    "OPENAI_API_KEY": "**-****mjtLg*****************kFJrTz3****************72U"
    }
    
}'

WEB UI is working correctly

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

1 participant