everything working on spaces

This commit is contained in:
freddyaboulton
2024-09-25 12:18:32 -04:00
parent 83be4aa3ea
commit 11c828edb5
17 changed files with 91 additions and 1157 deletions

View File

@@ -1,5 +1,4 @@
<script lang="ts">
import Video from "./shared/Video.svelte";
import { playable } from "./shared/utils";
import { type FileData } from "@gradio/client";
@@ -28,16 +27,12 @@
class:gallery={type === "gallery"}
class:selected
>
<Video
muted
playsinline
bind:node={video}
<video
bind:this={video}
on:loadeddata={init}
on:mouseover={video.play.bind(video)}
on:mouseout={video.pause.bind(video)}
src={value?.video.url}
is_stream={false}
{loop}
/>
</div>
{:else}