mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-11 11:19:58 +08:00
fix more stories
This commit is contained in:
parent
cb71fab55b
commit
712d27fb61
@ -1,6 +1,6 @@
|
||||
<script>
|
||||
import { Meta, Template, Story } from "@storybook/addon-svelte-csf";
|
||||
import Radio from "./shared/Radio.svelte";
|
||||
import Radio from "./Index.svelte";
|
||||
</script>
|
||||
|
||||
<Meta
|
||||
|
@ -27,15 +27,29 @@
|
||||
</Template>
|
||||
|
||||
<Story
|
||||
name="Primary"
|
||||
name="Record from webcam"
|
||||
args={{
|
||||
value: ["https://gradio-static-files.s3.us-west-2.amazonaws.com/world.mp4"],
|
||||
format: "mp4",
|
||||
label: "world video",
|
||||
show_label: true,
|
||||
interactive: true,
|
||||
autoplay: true,
|
||||
height: 400,
|
||||
width: 400
|
||||
}}
|
||||
/>
|
||||
|
||||
<Story
|
||||
name="Static video"
|
||||
args={{
|
||||
value: {
|
||||
video: {
|
||||
path: "https://gradio-static-files.s3.us-west-2.amazonaws.com/world.mp4",
|
||||
url: "https://gradio-static-files.s3.us-west-2.amazonaws.com/world.mp4",
|
||||
orig_name: "world.mp4"
|
||||
}
|
||||
},
|
||||
label: "world video",
|
||||
show_label: true,
|
||||
interactive: false
|
||||
}}
|
||||
/>
|
||||
|
@ -1,4 +1,4 @@
|
||||
lockfileVersion: '6.0'
|
||||
lockfileVersion: '6.1'
|
||||
|
||||
settings:
|
||||
autoInstallPeers: true
|
||||
|
Loading…
Reference in New Issue
Block a user