Spaces:
Runtime error
Runtime error
yizhangliu
commited on
Commit
·
ad66e11
1
Parent(s):
1987175
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,8 @@ def get_api():
|
|
26 |
|
27 |
def get_response_from_chatbot(api, text):
|
28 |
if api is None:
|
29 |
-
return "Sorry, I'm busy. Try again later.(1)"
|
|
|
30 |
try:
|
31 |
resp = api.send_message(text)
|
32 |
api.refresh_auth()
|
@@ -37,7 +38,8 @@ def get_response_from_chatbot(api, text):
|
|
37 |
# logger.info(f"response_: {response}")
|
38 |
logger.info(f"conversation_id_: [{conversation_id}] / parent_id: [{parent_id}]")
|
39 |
except:
|
40 |
-
response = "Sorry, I'm busy. Try again later.(2)"
|
|
|
41 |
return response
|
42 |
|
43 |
model_ids = {
|
|
|
26 |
|
27 |
def get_response_from_chatbot(api, text):
|
28 |
if api is None:
|
29 |
+
# return "Sorry, I'm busy. Try again later.(1)"
|
30 |
+
return "Openai said: I'm too tired. Let me lie down for a few days."
|
31 |
try:
|
32 |
resp = api.send_message(text)
|
33 |
api.refresh_auth()
|
|
|
38 |
# logger.info(f"response_: {response}")
|
39 |
logger.info(f"conversation_id_: [{conversation_id}] / parent_id: [{parent_id}]")
|
40 |
except:
|
41 |
+
# response = "Sorry, I'm busy. Try again later.(2)"
|
42 |
+
response = "Openai said: I'm so tired. Let me lie down for a few days."
|
43 |
return response
|
44 |
|
45 |
model_ids = {
|