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

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 None
26
 
27
  iface = gr.Interface(
28
  fn=tts,
 
22
  return result
23
  except Exception as e:
24
  print(e)
25
+ return gr.Error(e)
26
 
27
  iface = gr.Interface(
28
  fn=tts,