Spaces:
Paused
Paused
Upload 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
|
@@ -29,7 +29,7 @@ async def get_model_reply(prompt,style,cookies,context=[]):
|
|
29 |
with gr.Blocks() as dialog_app:
|
30 |
|
31 |
with gr.Tab("Cookies"):
|
32 |
-
cookies = gr.Textbox(lines=2, label="输入bing.com中的cookies"
|
33 |
with gr.Tab("New Bing Chat GPT4"):
|
34 |
gr.Markdown("# 连接 new-bing 接口,用的是GPT4的接口")
|
35 |
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
|
|
|
29 |
with gr.Blocks() as dialog_app:
|
30 |
|
31 |
with gr.Tab("Cookies"):
|
32 |
+
cookies = gr.Textbox(lines=2, label="输入bing.com中的cookies")
|
33 |
with gr.Tab("New Bing Chat GPT4"):
|
34 |
gr.Markdown("# 连接 new-bing 接口,用的是GPT4的接口")
|
35 |
chatbot = gr.Chatbot()
|