Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,6 @@ access_token = None
|
|
7 |
session_token = None
|
8 |
|
9 |
def configure_chatbot(email,password):
|
10 |
-
|
11 |
config = {}
|
12 |
config.update({"email": email,
|
13 |
"password": password})
|
@@ -15,7 +14,7 @@ def configure_chatbot(email,password):
|
|
15 |
global chatbot
|
16 |
chatbot = Chatbot(config=config)
|
17 |
|
18 |
-
|
19 |
|
20 |
def ask_bot(prompt):
|
21 |
message = ""
|
@@ -38,9 +37,8 @@ with gr.Blocks() as demo:
|
|
38 |
gr.Markdown("""<h2>Login to OpenAI</h2>""")
|
39 |
with gr.Row():
|
40 |
with gr.Group():
|
41 |
-
|
42 |
-
|
43 |
-
password = gr.Textbox(placeholder="", label="password")
|
44 |
with gr.Row():
|
45 |
login = gr.Button("输完箱密点此登录")
|
46 |
login.click(configure_chatbot, inputs=[email,password])
|
|
|
7 |
session_token = None
|
8 |
|
9 |
def configure_chatbot(email,password):
|
|
|
10 |
config = {}
|
11 |
config.update({"email": email,
|
12 |
"password": password})
|
|
|
14 |
global chatbot
|
15 |
chatbot = Chatbot(config=config)
|
16 |
|
17 |
+
|
18 |
|
19 |
def ask_bot(prompt):
|
20 |
message = ""
|
|
|
37 |
gr.Markdown("""<h2>Login to OpenAI</h2>""")
|
38 |
with gr.Row():
|
39 |
with gr.Group():
|
40 |
+
email = gr.Textbox(placeholder="请输入已经注册了openAI的邮箱地址")
|
41 |
+
password = gr.Textbox(placeholder="请输入openAI的登录密码")
|
|
|
42 |
with gr.Row():
|
43 |
login = gr.Button("输完箱密点此登录")
|
44 |
login.click(configure_chatbot, inputs=[email,password])
|