Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,11 @@ def get_dreamtalk(image_in, speech):
|
|
27 |
def pipe (text, voice, image_in):
|
28 |
|
29 |
speech = get_speech(text, voice)
|
30 |
-
|
|
|
|
|
|
|
|
|
31 |
|
32 |
return video
|
33 |
|
|
|
27 |
def pipe (text, voice, image_in):
|
28 |
|
29 |
speech = get_speech(text, voice)
|
30 |
+
|
31 |
+
try:
|
32 |
+
video = get_dreamtalk(image_in, speech)
|
33 |
+
except:
|
34 |
+
raise gr.Error('Could not load DreamTalk, please try again later')
|
35 |
|
36 |
return video
|
37 |
|