weifeng.genius commited on
Commit
8ed5373
1 Parent(s): df31b31

adjust layout

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -146,9 +146,9 @@ def preview_inference(
146
  if __name__ == '__main__':
147
  with gr.Blocks() as demo:
148
  with gr.Row():
149
- with gr.Column():
150
- input_video = gr.Video(
151
- label="Input Video", source='upload', format="mp4", visible=True)
152
  with gr.Column():
153
  init_noise_thres = gr.Slider(0, 1, value=0.1, step=0.1, label="init_noise_thress")
154
  each_sample_frame = gr.Slider(6, 16, value=8, step=1, label="each_sample_frame")
@@ -164,8 +164,8 @@ if __name__ == '__main__':
164
  prompt = gr.Textbox(label='Prompt')
165
  # preview_button = gr.Button('Preview')
166
  run_button = gr.Button('Generate Video')
167
- with gr.Column():
168
- result = gr.Video(label="Generated Video")
169
  inputs = [
170
  input_video,
171
  prompt,
 
146
  if __name__ == '__main__':
147
  with gr.Blocks() as demo:
148
  with gr.Row():
149
+ # with gr.Column(scale=1):
150
+ input_video = gr.Video(
151
+ label="Input Video", source='upload', format="mp4", visible=True)
152
  with gr.Column():
153
  init_noise_thres = gr.Slider(0, 1, value=0.1, step=0.1, label="init_noise_thress")
154
  each_sample_frame = gr.Slider(6, 16, value=8, step=1, label="each_sample_frame")
 
164
  prompt = gr.Textbox(label='Prompt')
165
  # preview_button = gr.Button('Preview')
166
  run_button = gr.Button('Generate Video')
167
+ # with gr.Column(scale=1):
168
+ result = gr.Video(label="Generated Video")
169
  inputs = [
170
  input_video,
171
  prompt,