Pie31415 commited on
Commit
4c4e4e1
·
1 Parent(s): ab92e15

updated app

Browse files
Files changed (1) hide show
  1. app.py +0 -7
app.py CHANGED
@@ -198,12 +198,6 @@ def video_inference(
198
 
199
  return "avatar.gif"
200
 
201
- upload = True
202
-
203
- def toggle_webcam():
204
- global upload
205
- upload = not upload
206
-
207
  description = """<p style='text-align: center'> Create a personal avatar from just a single image using ROME. <br> <a href='https://arxiv.org/abs/2206.08343' target='_blank'>Paper</a> | <a href='https://samsunglabs.github.io/rome' target='_blank'>Project Page</a> | <a href='https://github.com/SamsungLabs/rome' target='_blank'>Github</a> </p>"""
208
  quote = """
209
  > <p style='text-align: center'> [The] system creates realistic mesh-based avatars from a single <strong>source</strong> photo. These avatars are rigged, i.e., they can be driven by the animation parameters from a different <strong>driving</strong> frame. </p>"""
@@ -241,6 +235,5 @@ with gr.Blocks() as demo:
241
 
242
  image_button.click(image_inference, inputs=[source_img, driver_img], outputs=image_output)
243
  video_button.click(video_inference, inputs=[source_img2, driver_vid], outputs=video_output)
244
- toggle_cam.click(toggle_webcam)
245
 
246
  demo.launch()
 
198
 
199
  return "avatar.gif"
200
 
 
 
 
 
 
 
201
  description = """<p style='text-align: center'> Create a personal avatar from just a single image using ROME. <br> <a href='https://arxiv.org/abs/2206.08343' target='_blank'>Paper</a> | <a href='https://samsunglabs.github.io/rome' target='_blank'>Project Page</a> | <a href='https://github.com/SamsungLabs/rome' target='_blank'>Github</a> </p>"""
202
  quote = """
203
  > <p style='text-align: center'> [The] system creates realistic mesh-based avatars from a single <strong>source</strong> photo. These avatars are rigged, i.e., they can be driven by the animation parameters from a different <strong>driving</strong> frame. </p>"""
 
235
 
236
  image_button.click(image_inference, inputs=[source_img, driver_img], outputs=image_output)
237
  video_button.click(video_inference, inputs=[source_img2, driver_vid], outputs=video_output)
 
238
 
239
  demo.launch()