jiayong commited on
Commit
4c2750f
·
1 Parent(s): 8ed77ef

Update app.py

Browse files

fix bug of 'Box'

Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -236,10 +236,10 @@ with gr.Blocks(title = "追影",
236
  with gr.Row():
237
  with gr.Column(scale=1): # 左侧一列
238
  # gr.Markdown("输入形象和动作",elem_id='font_style')
239
- with gr.Box(elem_id='show_box'):
240
  gr.Markdown("输入你的形象")
241
  with gr.Column():
242
- with gr.Box(elem_id='show_box1'):
243
  with gr.Row(): # 图片输入
244
  #左侧图片预览
245
  ref_image = gr.Image(source='upload', type='filepath', show_label=False, label='输入图片',elem_id='show_window_image')
@@ -296,9 +296,9 @@ with gr.Blocks(title = "追影",
296
 
297
  with gr.Column(scale=1): # 右侧一列
298
  # gr.Markdown("生成视频",elem_id='font_style')
299
- with gr.Box(elem_id='show_box2'):
300
  with gr.Row():
301
- with gr.Box(elem_id='box_show4'):
302
  with gr.Column(scale=0.33, min_width=0.33):
303
  gr.Markdown("生成视频",elem_id='font_style')
304
  with gr.Column(scale=0.33, min_width=0.33):
@@ -326,7 +326,7 @@ with gr.Blocks(title = "追影",
326
  # mp4_listss = [[i] for i in mp4_lists]
327
  # gr.Markdown("样例视频",elem_id='font_style')
328
  # ref_video1 = gr.Video(source='upload', height=400, type='filepath', show_label=False, visible=False, label='输入视频',elem_id='show_window_video')
329
- # with gr.Box():
330
  # gr.Examples(mp4_listss, examples_per_page=12, inputs=[ref_video1], label='')
331
 
332
  if ENABLE_OSS_RESOURCES:
@@ -345,7 +345,7 @@ with gr.Blocks(title = "追影",
345
  num_video = len(mp4_lists)
346
  with gr.Row():
347
  gr.Markdown("样例视频",elem_id='font_style')
348
- with gr.Box(elem_id='show_box'):
349
  with gr.Column():
350
  for i in range(int((num_video+num_videos_per_row-1)/num_videos_per_row)):
351
  with gr.Row():
 
236
  with gr.Row():
237
  with gr.Column(scale=1): # 左侧一列
238
  # gr.Markdown("输入形象和动作",elem_id='font_style')
239
+ with gr.Group(elem_id='show_box'):
240
  gr.Markdown("输入你的形象")
241
  with gr.Column():
242
+ with gr.Group(elem_id='show_box1'):
243
  with gr.Row(): # 图片输入
244
  #左侧图片预览
245
  ref_image = gr.Image(source='upload', type='filepath', show_label=False, label='输入图片',elem_id='show_window_image')
 
296
 
297
  with gr.Column(scale=1): # 右侧一列
298
  # gr.Markdown("生成视频",elem_id='font_style')
299
+ with gr.Group(elem_id='show_box2'):
300
  with gr.Row():
301
+ with gr.Group(elem_id='box_show4'):
302
  with gr.Column(scale=0.33, min_width=0.33):
303
  gr.Markdown("生成视频",elem_id='font_style')
304
  with gr.Column(scale=0.33, min_width=0.33):
 
326
  # mp4_listss = [[i] for i in mp4_lists]
327
  # gr.Markdown("样例视频",elem_id='font_style')
328
  # ref_video1 = gr.Video(source='upload', height=400, type='filepath', show_label=False, visible=False, label='输入视频',elem_id='show_window_video')
329
+ # with gr.Group():
330
  # gr.Examples(mp4_listss, examples_per_page=12, inputs=[ref_video1], label='')
331
 
332
  if ENABLE_OSS_RESOURCES:
 
345
  num_video = len(mp4_lists)
346
  with gr.Row():
347
  gr.Markdown("样例视频",elem_id='font_style')
348
+ with gr.Group(elem_id='show_box'):
349
  with gr.Column():
350
  for i in range(int((num_video+num_videos_per_row-1)/num_videos_per_row)):
351
  with gr.Row():