Spaces:
Runtime error
Runtime error
MarkoVidrih
commited on
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
|
36 |
|
37 |
return video
|
38 |
|
@@ -46,7 +46,7 @@ with gr.Blocks() as demo:
|
|
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')
|
36 |
|
37 |
return video
|
38 |
|
|
|
46 |
""")
|
47 |
with gr.Row():
|
48 |
with gr.Column():
|
49 |
+
image_in = gr.Image(label="Portrait IN", type="filepath", value="./1.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")
|