tommy24 commited on
Commit
b0a74a0
·
1 Parent(s): f8ffb53

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -57,10 +57,10 @@ def main(prompt):
57
  if "ChatSonic" in data:
58
  data = data.replace("ChatSonic","John")
59
  return data
60
- except:
61
  return "Error occured!"
62
- except:
63
- return "Error occured!"
64
 
65
  iface = gr.Interface(fn=main, inputs="text", outputs="text")
66
  iface.launch()
 
57
  if "ChatSonic" in data:
58
  data = data.replace("ChatSonic","John")
59
  return data
60
+ except Exception as e:
61
  return "Error occured!"
62
+ except Exception as e:
63
+ return e.message
64
 
65
  iface = gr.Interface(fn=main, inputs="text", outputs="text")
66
  iface.launch()