liuhuohuo commited on
Commit
6e9980d
1 Parent(s): 36b3648
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -176,9 +176,10 @@ demo_exaples_video = [
176
  ['eval_data/icon_1.png', 'A campfire surrounded by tents.', 'video', 123, 1.0, 50],
177
  ]
178
  css = """
179
- #input_img {max-height: 320px;}
180
  #input_img [data-testid="image"], #input_img [data-testid="image"] > div{max-height: 320px; max-width: 512px;}
181
- #output_vid {max-height: 400px;}
 
182
  """
183
 
184
  with gr.Blocks(analytics_enabled=False, css=css) as demo_iface:
@@ -193,7 +194,7 @@ with gr.Blocks(analytics_enabled=False, css=css) as demo_iface:
193
  with gr.Row():
194
  input_prompt = gr.Text(label='Prompts')
195
  with gr.Row():
196
- input_seed = gr.Slider(label='Random Seed', minimum=0, maximum=10000, step=1, value=123)
197
  input_style_strength = gr.Slider(minimum=0.0, maximum=2.0, step=0.01, label='Style Strength', value=1.0)
198
  with gr.Row():
199
  input_step = gr.Slider(minimum=1, maximum=75, step=1, elem_id="i2v_steps", label="Sampling steps", value=50)
@@ -201,7 +202,7 @@ with gr.Blocks(analytics_enabled=False, css=css) as demo_iface:
201
  input_end_btn = gr.Button("Generate")
202
  # with gr.Tab(label='Result'):
203
  with gr.Row():
204
- output_result = gr.Image(label="Generated Results",elem_id="output_vid", show_share_button=True)
205
 
206
  gr.Examples(examples=demo_exaples_image,
207
  inputs=[input_style_ref, input_prompt, input_type, input_seed, input_style_strength, input_step],
 
176
  ['eval_data/icon_1.png', 'A campfire surrounded by tents.', 'video', 123, 1.0, 50],
177
  ]
178
  css = """
179
+ #input_img {max-height: 320px; max-width: 512px;}
180
  #input_img [data-testid="image"], #input_img [data-testid="image"] > div{max-height: 320px; max-width: 512px;}
181
+ #output_img {max-height: 512px; max-width: 512px;}
182
+ #output_vid {max-height: 320px; max-width: 512px;}
183
  """
184
 
185
  with gr.Blocks(analytics_enabled=False, css=css) as demo_iface:
 
194
  with gr.Row():
195
  input_prompt = gr.Text(label='Prompts')
196
  with gr.Row():
197
+ input_seed = gr.Slider(label='Random Seed', minimum=0, maximum=1000, step=1, value=123)
198
  input_style_strength = gr.Slider(minimum=0.0, maximum=2.0, step=0.01, label='Style Strength', value=1.0)
199
  with gr.Row():
200
  input_step = gr.Slider(minimum=1, maximum=75, step=1, elem_id="i2v_steps", label="Sampling steps", value=50)
 
202
  input_end_btn = gr.Button("Generate")
203
  # with gr.Tab(label='Result'):
204
  with gr.Row():
205
+ output_result = gr.Image(label="Generated Results",elem_id="output_img", show_share_button=True)
206
 
207
  gr.Examples(examples=demo_exaples_image,
208
  inputs=[input_style_ref, input_prompt, input_type, input_seed, input_style_strength, input_step],