zss2341 commited on
Commit
7b0e5ce
·
1 Parent(s): 71bd1ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -33,14 +33,14 @@ with gr.Blocks() as demo:
33
 
34
  if not password:
35
  gr.Markdown("""<h2>请使用openAI账户登录</h2>""")
36
- with gr.Row():
37
- with gr.Column():
38
- email = gr.Textbox(label="请输入openAI的邮箱地址")
39
- password = gr.Textbox(label="请输入openAI的登录密码")
40
- login = gr.Button("输完箱密点此登录")
41
- login.click(configure_chatbot, inputs=[email, password])
42
  elif password:
43
- configure_chatbot(email, password)
44
 
45
  gr.Markdown("""<h2>开始聊吧 ...</h2>""")
46
  chatbot1 = gr.Chatbot()
@@ -49,4 +49,4 @@ with gr.Blocks() as demo:
49
  submit = gr.Button("输入完成一定要点击这里发送")
50
  submit.click(chatgpt_clone, inputs=[message, state], outputs=[chatbot1, state])
51
 
52
- demo.launch(debug = True, share=False)
 
33
 
34
  if not password:
35
  gr.Markdown("""<h2>请使用openAI账户登录</h2>""")
36
+ with gr.Row():
37
+ with gr.Column():
38
+ email = gr.Textbox(label="请输入openAI的邮箱地址")
39
+ password = gr.Textbox(label="请输入openAI的登录密码")
40
+ login = gr.Button("输完箱密点此登录")
41
+ login.click(configure_chatbot, inputs=[email, password])
42
  elif password:
43
+ configure_chatbot(email, password)
44
 
45
  gr.Markdown("""<h2>开始聊吧 ...</h2>""")
46
  chatbot1 = gr.Chatbot()
 
49
  submit = gr.Button("输入完成一定要点击这里发送")
50
  submit.click(chatgpt_clone, inputs=[message, state], outputs=[chatbot1, state])
51
 
52
+ demo.launch(debug = True, share=False)