Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -55,6 +55,15 @@ async def get_model_reply(prompt,style,cookies,context=[]):
|
|
55 |
# return responses, context
|
56 |
|
57 |
except:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
try:
|
59 |
if raw_data["item"]["throttling"]["numUserMessagesInConversation"] > raw_data["item"]["throttling"][
|
60 |
"maxNumUserMessagesInConversation"]:
|
|
|
55 |
# return responses, context
|
56 |
|
57 |
except:
|
58 |
+
try:
|
59 |
+
raw_data["item"]
|
60 |
+
except UnboundLocalError:
|
61 |
+
response = "UnboundLocalError > **错误: 我们很抱歉,但你已经达到了你在24小时内可以向Bing发送消息的最大数量。请稍后再查看!**"
|
62 |
+
print(response)
|
63 |
+
context += ["1"]
|
64 |
+
responses = [(u, b) for u, b in zip(context[::2], context[1::2])]
|
65 |
+
return responses, context
|
66 |
+
|
67 |
try:
|
68 |
if raw_data["item"]["throttling"]["numUserMessagesInConversation"] > raw_data["item"]["throttling"][
|
69 |
"maxNumUserMessagesInConversation"]:
|