Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,30 +25,25 @@ def fn(pipeline_type, filename):
|
|
| 25 |
demo = gr.Blocks()
|
| 26 |
|
| 27 |
with demo:
|
|
|
|
| 28 |
gr.HTML(
|
| 29 |
"""
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
</div>
|
| 47 |
-
<p style="margin-bottom: 10px; font-size: 94%">
|
| 48 |
-
</p>
|
| 49 |
-
</div>
|
| 50 |
-
"""
|
| 51 |
-
)
|
| 52 |
dropdown_list = gr.inputs.Dropdown(["ASR", "VSR(mediapipe)", "AVSR(mediapipe)"], label="model")
|
| 53 |
video_file = gr.Video(label="INPUT VIDEO", include_audio=True)
|
| 54 |
text = gr.Textbox(label="PREDICTION")
|
|
@@ -56,14 +51,4 @@ with demo:
|
|
| 56 |
|
| 57 |
btn.click(fn, inputs=[dropdown_list, video_file], outputs=text)
|
| 58 |
|
| 59 |
-
with gr.Accordion("Additional information", open=False):
|
| 60 |
-
gr.HTML(
|
| 61 |
-
"""
|
| 62 |
-
<div class="acknowledgments">
|
| 63 |
-
<p> We used retinaface for training, but for the demo we used mediapipe </p>
|
| 64 |
-
<p> We share this demo only for non-commercial purposes. </p>
|
| 65 |
-
</div>
|
| 66 |
-
"""
|
| 67 |
-
)
|
| 68 |
-
|
| 69 |
demo.launch()
|
|
|
|
| 25 |
demo = gr.Blocks()
|
| 26 |
|
| 27 |
with demo:
|
| 28 |
+
|
| 29 |
gr.HTML(
|
| 30 |
"""
|
| 31 |
+
<div style="text-align: center; max-width: 1200px; margin: 20px auto;">
|
| 32 |
+
<h1 style="font-weight: 900; font-size: 3rem; margin: 0rem">
|
| 33 |
+
Auto-AVSR
|
| 34 |
+
</h1>
|
| 35 |
+
<h3 style="font-weight: 450; font-size: 1rem; margin: 0rem">
|
| 36 |
+
[<a href="https://arxiv.org/abs/2303.14307" style="color:blue;">arXiv</a>]
|
| 37 |
+
[<a href="https://github.com/mpc001/auto_avsr" style="color:blue;">Code</a>]
|
| 38 |
+
</h3>
|
| 39 |
+
<h2 style="text-align: left; font-weight: 450; font-size: 1rem; margin-top: 0.5rem; margin-bottom: 0.5rem">
|
| 40 |
+
🔥 <b>Notes</b>: We share this demo only for non-commercial purposes.
|
| 41 |
+
</h2>
|
| 42 |
+
|
| 43 |
+
</div>
|
| 44 |
+
""")
|
| 45 |
+
|
| 46 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
dropdown_list = gr.inputs.Dropdown(["ASR", "VSR(mediapipe)", "AVSR(mediapipe)"], label="model")
|
| 48 |
video_file = gr.Video(label="INPUT VIDEO", include_audio=True)
|
| 49 |
text = gr.Textbox(label="PREDICTION")
|
|
|
|
| 51 |
|
| 52 |
btn.click(fn, inputs=[dropdown_list, video_file], outputs=text)
|
| 53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
demo.launch()
|