Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def get_speech(text, voice):
|
|
13 |
)
|
14 |
print(result)
|
15 |
return result
|
16 |
-
except
|
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
|
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):
|