mervebyrk commited on
Commit
37c49ec
·
verified ·
1 Parent(s): 579112a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -16
app.py CHANGED
@@ -263,22 +263,22 @@ with gr.Blocks(css=css) as demo:
263
  <a style='font-size:18px;color: #000000' href=''> [Project Page(Coming Soon)] </a> </div>"
264
  )
265
 
266
- with gr.Row():
267
- with gr.Column():
268
- audio = gr.Audio(label="Driven Audio", type="filepath", max_size=500_000_000)
269
- video = gr.Video(label="Reference Video", max_size=500_000_000)
270
- bbox_shift = gr.Number(label="BBox_shift [-9, 9]", value=-1)
271
- btn = gr.Button("Generate")
272
-
273
- with gr.Column():
274
- out1 = gr.Video()
275
-
276
- video.change(fn=check_video, inputs=video, outputs=video)
277
- btn.click(
278
- fn=inference,
279
- inputs=[audio, video, bbox_shift],
280
- outputs=out1,
281
- )
282
 
283
  # Set the IP and port
284
  ip_address = "0.0.0.0" # Replace with your desired IP address
 
263
  <a style='font-size:18px;color: #000000' href=''> [Project Page(Coming Soon)] </a> </div>"
264
  )
265
 
266
+ with gr.Row():
267
+ with gr.Column():
268
+ audio = gr.Audio(label="Driven Audio", type="filepath", max_size=500_000_000)
269
+ video = gr.Video(label="Reference Video", max_size=500_000_000)
270
+ bbox_shift = gr.Number(label="BBox_shift [-9, 9]", value=-1)
271
+ btn = gr.Button("Generate")
272
+
273
+ with gr.Column():
274
+ out1 = gr.Video()
275
+
276
+ video.change(fn=check_video, inputs=video, outputs=video)
277
+ btn.click(
278
+ fn=inference,
279
+ inputs=[audio, video, bbox_shift],
280
+ outputs=out1,
281
+ )
282
 
283
  # Set the IP and port
284
  ip_address = "0.0.0.0" # Replace with your desired IP address