Update src/frontend/shared/Gallery.svelte

#2
by liugavin - opened

Fix a bug where a video cannot be displayed because it's using an incorrect URL without the "/file=" part.
E.g. as shown in the screenshot below, the frontend tries to fetch http://127.0.0.1:7860/tmp/gradio/5fef880e2f35db60c11044a485ff84cfcabd75ba/men-on-snow.mp4, but the correct URL should be http://127.0.0.1:7860/file=/tmp/gradio/5fef880e2f35db60c11044a485ff84cfcabd75ba/men-on-snow.mp4 , in order words, it should contain the "/file=" part.

image.png

Oh thanks man, that definitely helped with displaying local video files!

Ready to merge
This branch is ready to get merged automatically.
Your need to confirm your account before you can post a new comment.

Sign up or log in to comment