Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,12 @@ def main(prompt):
|
|
53 |
data = json.loads(response.text)
|
54 |
try:
|
55 |
data = data["message"]
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
57 |
except:
|
58 |
return "Error occured"
|
59 |
|
|
|
53 |
data = json.loads(response.text)
|
54 |
try:
|
55 |
data = data["message"]
|
56 |
+
try:
|
57 |
+
if "ChatSonic" in data:
|
58 |
+
data = data.replace("ChatSonic","John")
|
59 |
+
return data
|
60 |
+
except:
|
61 |
+
return data
|
62 |
except:
|
63 |
return "Error occured"
|
64 |
|