Karzan commited on
Commit
137d101
·
verified ·
1 Parent(s): ee6d1a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def tts(text: str):
22
  return result
23
  except Exception as e:
24
  print(e)
25
- return gr.Error(e)
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,