Update app.py
Browse files
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
|
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()
|