Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ import os
|
|
5 |
from EdgeGPT import Chatbot, ConversationStyle
|
6 |
|
7 |
#read cookie from local file
|
8 |
-
with open('./cookies.json', 'r') as f:
|
9 |
-
|
10 |
|
11 |
async def get_model_reply(prompt,style,cookies,context=[]):
|
12 |
# combines the new question with a previous context
|
@@ -33,7 +33,7 @@ async def get_model_reply(prompt,style,cookies,context=[]):
|
|
33 |
# print(' ' + responses[-1][1])
|
34 |
with gr.Blocks() as dialog_app:
|
35 |
with gr.Tab("Cookies"):
|
36 |
-
|
37 |
with gr.Tab("New Bing Chat"):
|
38 |
gr.Markdown("# A Simple Web to use New Bing Without Magic")
|
39 |
chatbot = gr.Chatbot()
|
|
|
5 |
from EdgeGPT import Chatbot, ConversationStyle
|
6 |
|
7 |
#read cookie from local file
|
8 |
+
# with open('./cookies.json', 'r') as f:
|
9 |
+
# cookies = json.load(f)
|
10 |
|
11 |
async def get_model_reply(prompt,style,cookies,context=[]):
|
12 |
# combines the new question with a previous context
|
|
|
33 |
# print(' ' + responses[-1][1])
|
34 |
with gr.Blocks() as dialog_app:
|
35 |
with gr.Tab("Cookies"):
|
36 |
+
cookies = gr.Textbox(lines=2, label="输入bing.com中的cookies")
|
37 |
with gr.Tab("New Bing Chat"):
|
38 |
gr.Markdown("# A Simple Web to use New Bing Without Magic")
|
39 |
chatbot = gr.Chatbot()
|