fffiloni commited on
Commit
bce3142
·
1 Parent(s): b5a5c95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -8
app.py CHANGED
@@ -96,15 +96,18 @@ with gr.Blocks(css=css) as demo:
96
  gr.Markdown("""
97
  <h1 style="text-align: center;">ControlVideo</h1>
98
  """)
99
- prompt = gr.Textbox(label="prompt")
100
- video_path = gr.Video(source="upload", type="filepath")
101
  with gr.Row():
102
- condition = gr.Dropdown(label="Condition", choices=["depth", "canny", "pose"], value="depth")
103
- video_length = gr.Slider(label="Video length", info="How many frames do you want to process ?", minimum=1, maximum=12, step=1, value=2)
104
- #seed = gr.Number(label="seed", value=42)
105
- submit_btn = gr.Button("Submit")
106
- video_res = gr.Video(label="result")
107
- status = gr.Textbox(label="result")
 
 
 
 
 
108
  video_path.change(fn=get_frame_count_in_duration,
109
  inputs=[video_path],
110
  outputs=[video_length]
 
96
  gr.Markdown("""
97
  <h1 style="text-align: center;">ControlVideo</h1>
98
  """)
 
 
99
  with gr.Row():
100
+ with gr.column():
101
+ video_path = gr.Video(source="upload", type="filepath")
102
+ prompt = gr.Textbox(label="prompt")
103
+ with gr.Row():
104
+ condition = gr.Dropdown(label="Condition", choices=["depth", "canny", "pose"], value="depth")
105
+ video_length = gr.Slider(label="Video length", info="How many frames do you want to process ?", minimum=1, maximum=12, step=1, value=2)
106
+ #seed = gr.Number(label="seed", value=42)
107
+ submit_btn = gr.Button("Submit")
108
+ with gr.Column():
109
+ video_res = gr.Video(label="result")
110
+ status = gr.Textbox(label="result")
111
  video_path.change(fn=get_frame_count_in_duration,
112
  inputs=[video_path],
113
  outputs=[video_length]