Using S3 presigned URL's with gr.Video or gr.Model3D fails #10375
Labels
bug
Something isn't working
good first issue
Good for newcomers
python
Backend-related issue (Python)
Describe the bug
Description
Using presigned URLs with certain Gradio components like
gr.Video
orgr.Model3D
fails, resulting in the following error:Steps to Reproduce
gr.Video
orgr.Model3D
.Expected Behavior
Gradio components should seamlessly handle presigned URLs and load the respective content without issues. For example this GitHub's RAW filepath does work: https://github.com/XnetLoL/test/raw/813ce5b531308d88f1a0c4256849fefe024c4d9e/breakdance.glb
Actual Behavior
The presigned URL, which includes query parameters, causes an invalid file path error when Gradio tries to process it.
Possible Cause
It seems Gradio attempts to interpret the entire presigned URL (including query parameters) as a file path, which results in an invalid argument error.
Environment
Additional Notes
Maybe this issue could be resolved by properly handling URLs with query parameters in Gradio components.
Thanks.
Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
System Info
Severity
I can work around it
The text was updated successfully, but these errors were encountered: