fffiloni commited on
Commit
1242299
1 Parent(s): 2de1191

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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
- video = get_dreamtalk(image_in, speech)
 
 
 
 
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