jujutech commited on
Commit
5eaa950
·
verified ·
1 Parent(s): 73f4249

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,7 +13,7 @@ def get_speech(text, voice):
13
  )
14
  print(result)
15
  return result
16
- except ValueError as e:
17
  raise gr.Error(f"Error in get_speech: {str(e)}")
18
 
19
  def get_dreamtalk(image_in, speech):
@@ -27,7 +27,7 @@ def get_dreamtalk(image_in, speech):
27
  )
28
  print(result)
29
  return result['video']
30
- except ValueError as e:
31
  raise gr.Error(f"Error in get_dreamtalk: {str(e)}")
32
 
33
  def pipe(text, voice, image_in):
 
13
  )
14
  print(result)
15
  return result
16
+ except Exception as e:
17
  raise gr.Error(f"Error in get_speech: {str(e)}")
18
 
19
  def get_dreamtalk(image_in, speech):
 
27
  )
28
  print(result)
29
  return result['video']
30
+ except Exception as e:
31
  raise gr.Error(f"Error in get_dreamtalk: {str(e)}")
32
 
33
  def pipe(text, voice, image_in):