xiaolv commited on
Commit
9c2d0ad
·
1 Parent(s): 6a7a9fa

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -51,14 +51,13 @@ async def get_model_reply(prompt,style,cookies,context=[]):
51
  if raw_data["item"]["result"]["value"] == "Throttled":
52
  response = "> **错误: 我们很抱歉,但你已经达到了你在24小时内可以向Bing发送消息的最大数量。请稍后再查看!**"
53
  print(response)
54
- context += ["0"]
55
  responses = [(u, b) for u, b in zip(context[::2], context[1::2])]
56
  return responses, context
57
 
58
 
59
  with gr.Blocks() as dialog_app:
60
 
61
-
62
  with gr.Tab("Cookies"):
63
  cookies = gr.Textbox(lines=2, label="输入bing.com中的cookies(JSON格式)")
64
  with gr.Tab("New Bing Chat GPT4"):
 
51
  if raw_data["item"]["result"]["value"] == "Throttled":
52
  response = "> **错误: 我们很抱歉,但你已经达到了你在24小时内可以向Bing发送消息的最大数量。请稍后再查看!**"
53
  print(response)
54
+ context += ["1"]
55
  responses = [(u, b) for u, b in zip(context[::2], context[1::2])]
56
  return responses, context
57
 
58
 
59
  with gr.Blocks() as dialog_app:
60
 
 
61
  with gr.Tab("Cookies"):
62
  cookies = gr.Textbox(lines=2, label="输入bing.com中的cookies(JSON格式)")
63
  with gr.Tab("New Bing Chat GPT4"):