Spaces:
Runtime error
Runtime error
Update src/frontend/shared/Gallery.svelte
Browse filesFix 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](https://cdn-uploads.huggingface.co/production/uploads/64e1652112a5504dda7355d7/um_Kn-E-B3inHuludLkLU.png)
src/frontend/shared/Gallery.svelte
CHANGED
@@ -236,7 +236,7 @@
|
|
236 |
class="detailed-video"
|
237 |
data-testid="detailed-video"
|
238 |
controls
|
239 |
-
src={_value[selected_index].image.
|
240 |
title={_value[selected_index].image.alt_text}
|
241 |
preload="auto"
|
242 |
on:play
|
@@ -334,7 +334,7 @@
|
|
334 |
class="detailed-video"
|
335 |
data-testid="detailed-video"
|
336 |
controls
|
337 |
-
src={entry.image.
|
338 |
title={entry.image.alt_text}
|
339 |
preload="auto"
|
340 |
on:play
|
|
|
236 |
class="detailed-video"
|
237 |
data-testid="detailed-video"
|
238 |
controls
|
239 |
+
src={_value[selected_index].image.url}
|
240 |
title={_value[selected_index].image.alt_text}
|
241 |
preload="auto"
|
242 |
on:play
|
|
|
334 |
class="detailed-video"
|
335 |
data-testid="detailed-video"
|
336 |
controls
|
337 |
+
src={entry.image.url}
|
338 |
title={entry.image.alt_text}
|
339 |
preload="auto"
|
340 |
on:play
|