multimodalart HF staff commited on
Commit
c36d490
1 Parent(s): cfcc80e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -160,13 +160,15 @@ with gr.Blocks(css=css) as demo:
160
  prompt = gr.Textbox(label="Prompt", info="Describe what to be steered by the directions", placeholder="A dog in the park")
161
  x = gr.Slider(minimum=0, value=1.75, step=0.1, maximum=4.0, label="Strength", info="maximum strength on each direction (unstable beyond 2.5)")
162
  submit = gr.Button("Generate directions")
163
- image_seq = gr.Image(label="Strip", elem_id="strip", height=65)
164
  with gr.Column():
165
- output_image = gr.Video(label="Looping video", elem_id="video", loop=True, autoplay=True)
166
  with gr.Group(elem_id="group"):
167
  post_generation_image = gr.Image(label="Generated Images", type="filepath", elem_id="interactive")
168
  post_generation_slider = gr.Slider(minimum=-10, maximum=10, value=0, step=1, label="From 1st to 2nd direction")
169
-
 
 
 
 
170
  with gr.Accordion(label="Advanced options", open=False):
171
  interm_steps = gr.Slider(label = "Num of intermediate images", minimum=3, value=7, maximum=65, step=2)
172
  with gr.Row():
 
160
  prompt = gr.Textbox(label="Prompt", info="Describe what to be steered by the directions", placeholder="A dog in the park")
161
  x = gr.Slider(minimum=0, value=1.75, step=0.1, maximum=4.0, label="Strength", info="maximum strength on each direction (unstable beyond 2.5)")
162
  submit = gr.Button("Generate directions")
 
163
  with gr.Column():
 
164
  with gr.Group(elem_id="group"):
165
  post_generation_image = gr.Image(label="Generated Images", type="filepath", elem_id="interactive")
166
  post_generation_slider = gr.Slider(minimum=-10, maximum=10, value=0, step=1, label="From 1st to 2nd direction")
167
+ with gr.Row():
168
+ with gr.Column(scale=3):
169
+ image_seq = gr.Image(label="Strip", elem_id="strip", height=65)
170
+ with gr.Column(scale=2):
171
+ output_image = gr.Video(label="Looping video", elem_id="video", loop=True, autoplay=True)
172
  with gr.Accordion(label="Advanced options", open=False):
173
  interm_steps = gr.Slider(label = "Num of intermediate images", minimum=3, value=7, maximum=65, step=2)
174
  with gr.Row():