Spaces:
Runtime error
Runtime error
MarkoVidrih
commited on
Commit
•
99acf19
1
Parent(s):
1df90e6
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def pipe (text, voice, image_in):
|
|
32 |
video = get_dreamtalk(image_in, speech)
|
33 |
except:
|
34 |
|
35 |
-
raise gr.Error('An error occurred while loading: Image may not contain any face')
|
36 |
|
37 |
return video
|
38 |
|
@@ -40,13 +40,13 @@ with gr.Blocks() as demo:
|
|
40 |
with gr.Column():
|
41 |
gr.HTML("""
|
42 |
<h2 style="text-align: center;">
|
43 |
-
|
44 |
</h2>
|
45 |
<p style="text-align: center;"></p>
|
46 |
""")
|
47 |
with gr.Row():
|
48 |
with gr.Column():
|
49 |
-
image_in = gr.Image(label="Portrait IN", type="filepath", value="./
|
50 |
with gr.Column():
|
51 |
voice = gr.Audio(type="filepath", label="Upload or Record Speaker audio (Optional voice cloning)")
|
52 |
text = gr.Textbox(label="text")
|
|
|
32 |
video = get_dreamtalk(image_in, speech)
|
33 |
except:
|
34 |
|
35 |
+
raise gr.Error('An error occurred while loading: Image may not contain any face - try again')
|
36 |
|
37 |
return video
|
38 |
|
|
|
40 |
with gr.Column():
|
41 |
gr.HTML("""
|
42 |
<h2 style="text-align: center;">
|
43 |
+
Talking Head
|
44 |
</h2>
|
45 |
<p style="text-align: center;"></p>
|
46 |
""")
|
47 |
with gr.Row():
|
48 |
with gr.Column():
|
49 |
+
image_in = gr.Image(label="Portrait IN", type="filepath", value="./einstein.jpg")
|
50 |
with gr.Column():
|
51 |
voice = gr.Audio(type="filepath", label="Upload or Record Speaker audio (Optional voice cloning)")
|
52 |
text = gr.Textbox(label="text")
|