RamAnanth1 commited on
Commit
31cdd21
β€’
1 Parent(s): 42eaaf0

Update gradio_t2v.py

Browse files
Files changed (1) hide show
  1. 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
- # num_frames = gr.Slider(
27
- # label='Number of frames',
28
- # minimum=16,
29
- # maximum=MAX_NUM_FRAMES,
30
- # step=1,
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=[["Astronaut riding a horse", 10431]],
 
 
 
 
 
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,