Pie31415 commited on
Commit
9da63d0
·
1 Parent(s): 0b77a39

updated app

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -198,14 +198,12 @@ def video_inference(
198
 
199
  return "avatar.gif"
200
 
201
-
202
- teaser = "<p style='text-align: center'> <img src='file/media/tease.gif' alt='Teaser'> </p>"
203
- 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>"
204
- quote = "<p style='text-align: center'> <blockquote> [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. </blockquote> </p>"
205
 
206
  with gr.Blocks() as demo:
207
  gr.Markdown("# **<p align='center'>ROME: Realistic one-shot mesh-based head avatars</p>**")
208
- gr.HTML(teaser)
209
  gr.Markdown(description)
210
  gr.HTML(quote)
211
 
@@ -217,8 +215,8 @@ with gr.Blocks() as demo:
217
  image_button = gr.Button("Predict")
218
  with gr.Tab("Video Inference"):
219
  with gr.Row():
220
- source_img2 = gr.Image(type="pil", label="source image", show_label=True)
221
- driver_vid = gr.Video(label="driver video")
222
  video_output = gr.Image(label="Rendered GIF avatar")
223
  video_button = gr.Button("Predict")
224
 
 
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 = """<p style='text-align: center'> <blockquote> [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. </blockquote> </p>"""
 
 
203
 
204
  with gr.Blocks() as demo:
205
  gr.Markdown("# **<p align='center'>ROME: Realistic one-shot mesh-based head avatars</p>**")
206
+ gr.HTML(value="<img src='file/media/tease.gif' alt='Teaser' style='display: block; margin: auto;'>")
207
  gr.Markdown(description)
208
  gr.HTML(quote)
209
 
 
215
  image_button = gr.Button("Predict")
216
  with gr.Tab("Video Inference"):
217
  with gr.Row():
218
+ source_img2 = gr.Image(type="pil", label="Source image", show_label=True)
219
+ driver_vid = gr.Video(label="Driver video")
220
  video_output = gr.Image(label="Rendered GIF avatar")
221
  video_button = gr.Button("Predict")
222