Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def tts(text: str):
|
|
22 |
return result
|
23 |
except Exception as e:
|
24 |
print(e)
|
25 |
-
|
26 |
|
27 |
iface = gr.Interface(
|
28 |
fn=tts,
|
|
|
22 |
return result
|
23 |
except Exception as e:
|
24 |
print(e)
|
25 |
+
raise gr.Error("Cannot divide by zero!")
|
26 |
|
27 |
iface = gr.Interface(
|
28 |
fn=tts,
|