Update app.py
Browse files
app.py
CHANGED
@@ -30,8 +30,10 @@ def pipe (text, voice, image_in):
|
|
30 |
|
31 |
try:
|
32 |
video = get_dreamtalk(image_in, speech)
|
33 |
-
except:
|
34 |
-
|
|
|
|
|
35 |
|
36 |
return video
|
37 |
|
|
|
30 |
|
31 |
try:
|
32 |
video = get_dreamtalk(image_in, speech)
|
33 |
+
except Exception as e:
|
34 |
+
tb = traceback.format_exception(etype=type(e), value=e, tb=e.__traceback__)
|
35 |
+
print("".join(tb))
|
36 |
+
raise gr.Error('An error occurred while loading DreamTalk:\n{}'.format('\n'.join(tb))) from None
|
37 |
|
38 |
return video
|
39 |
|