Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,9 +45,21 @@ def infer(audio_input, image_path):
|
|
| 45 |
|
| 46 |
with gr.Blocks() as demo:
|
| 47 |
with gr.Column():
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
with gr.Row():
|
| 49 |
with gr.Column():
|
| 50 |
image_path = gr.Image(label="Image", type="filepath", sources=["upload"])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
audio_input = gr.Audio(label="Audio input", type="filepath", sources=["upload"])
|
| 52 |
audio_list = gr.Dropdown(
|
| 53 |
label="Choose an audio (optional)",
|
|
|
|
| 45 |
|
| 46 |
with gr.Blocks() as demo:
|
| 47 |
with gr.Column():
|
| 48 |
+
gr.HTML("""
|
| 49 |
+
<h2 style="text-align: center;">DreamTalk</h2>
|
| 50 |
+
<p style="text-align: center;"></p>
|
| 51 |
+
""")
|
| 52 |
with gr.Row():
|
| 53 |
with gr.Column():
|
| 54 |
image_path = gr.Image(label="Image", type="filepath", sources=["upload"])
|
| 55 |
+
gr.Examples(
|
| 56 |
+
examples = [
|
| 57 |
+
"data/src_img/uncropped/face3.png",
|
| 58 |
+
"data/src_img/uncropped/male_face.png",
|
| 59 |
+
"data/src_img/uncropped/uncut_src_img.jpg"
|
| 60 |
+
],
|
| 61 |
+
inputs=[image_path]
|
| 62 |
+
)
|
| 63 |
audio_input = gr.Audio(label="Audio input", type="filepath", sources=["upload"])
|
| 64 |
audio_list = gr.Dropdown(
|
| 65 |
label="Choose an audio (optional)",
|