Open lilacs2039 opened 1 month ago
Interesting, so just to confirm, there's an extra "/c" in the returned path?
there's an extra "/c" in the returned path?
It depends on the case. In this case there was a "/c", but in other cases it could have been "/call/est". (i.e., http://127.0.0.1:7869/call/est/file=/tmp/gradio/10.... .55/image.webp)
Found problem here too.
This space show a example using curl or PowerShell https://huggingface.co/spaces/rrg92/GradioApiBug
Describe the bug
When the gradio application that returns images is used via API with the curl command, the wrong image file download path is returned.
Have you searched existing issues? 🔎
Reproduction
Run the following gradio application on a local server and execute the curl command. The incorrect file download path is returned. Accessing the download path returned by the browser yields "{"detail": "Not Found"}". The correct download path is "the path excluding the path string before /file".
App
app.py
Start Server
Use via API
Screenshot
No response
Logs
System Info
Severity
Blocking usage of gradio