fffiloni commited on
Commit
b6cece2
1 Parent(s): 1242299

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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
- raise gr.Error('Could not load DreamTalk, please try again later')
 
 
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