Spaces:
Runtime error
Runtime error
RamAnanth1
commited on
Commit
β’
31cdd21
1
Parent(s):
42eaaf0
Update gradio_t2v.py
Browse files- gradio_t2v.py +11 -15
gradio_t2v.py
CHANGED
@@ -23,20 +23,11 @@ def create_demo(get_video):
|
|
23 |
step=1,
|
24 |
value=-1,
|
25 |
info='If set to -1, a different seed will be used each time.')
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
# value=16,
|
32 |
-
# info=
|
33 |
-
# 'Note that the content of the video also changes when you change the number of frames.'
|
34 |
-
# )
|
35 |
-
# num_inference_steps = gr.Slider(label='Number of inference steps',
|
36 |
-
# minimum=10,
|
37 |
-
# maximum=50,
|
38 |
-
# step=1,
|
39 |
-
# value=25)
|
40 |
|
41 |
inputs = [
|
42 |
prompt,
|
@@ -44,7 +35,12 @@ def create_demo(get_video):
|
|
44 |
# num_frames,
|
45 |
# num_inference_steps,
|
46 |
]
|
47 |
-
gr.Examples(examples=[
|
|
|
|
|
|
|
|
|
|
|
48 |
inputs=inputs,
|
49 |
outputs=result,
|
50 |
fn=get_video,
|
|
|
23 |
step=1,
|
24 |
value=-1,
|
25 |
info='If set to -1, a different seed will be used each time.')
|
26 |
+
sampling_steps = gr.Slider(label='Number of sampling steps',
|
27 |
+
minimum=10,
|
28 |
+
maximum=100,
|
29 |
+
step=5,
|
30 |
+
value=50)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
inputs = [
|
33 |
prompt,
|
|
|
35 |
# num_frames,
|
36 |
# num_inference_steps,
|
37 |
]
|
38 |
+
gr.Examples(examples=[
|
39 |
+
["Astronaut riding a horse", 431, 50],
|
40 |
+
["Cars running on the highway at night", 1000, 50],
|
41 |
+
["close up of a clown fish swimming. 4K",7865, 50]
|
42 |
+
|
43 |
+
],
|
44 |
inputs=inputs,
|
45 |
outputs=result,
|
46 |
fn=get_video,
|