zss2341 commited on
Commit
a3d626f
·
1 Parent(s): fcd34b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -32,17 +32,16 @@ with gr.Blocks() as demo:
32
  gr.Markdown("""<h2><center>这是一个代理,用于实现免翻</center></h2> """)
33
  gr.Markdown("""<h2><center>小圈自用即可,能用不必谢我</center></h2> """)
34
  gr.Markdown("""<h2><center>用爱发电甚难,不要随便乱传</center></h2> """)
35
-
36
- if not email or password:
37
- gr.Markdown("""<h2>请使用openAI账户登录</h2>""")
38
- with gr.Row():
39
  email = gr.Textbox(placeholder="请输入openAI的邮箱地址")
40
- with gr.Row():
41
- password = gr.Textbox(placeholder="请输入openAI的登录密码")
42
- with gr.Row():
43
  login = gr.Button("输完箱密点此登录")
44
  login.click(configure_chatbot, inputs=[email, password])
45
- elif email and password:
46
  configure_chatbot(email,password)
47
 
48
  gr.Markdown("""<h2>开始聊吧 ...</h2>""")
 
32
  gr.Markdown("""<h2><center>这是一个代理,用于实现免翻</center></h2> """)
33
  gr.Markdown("""<h2><center>小圈自用即可,能用不必谢我</center></h2> """)
34
  gr.Markdown("""<h2><center>用爱发电甚难,不要随便乱传</center></h2> """)
35
+ if not email or password:
36
+ gr.Markdown("""<h2>请使用openAI账户登录</h2>""")
37
+ with gr.Row():
 
38
  email = gr.Textbox(placeholder="请输入openAI的邮箱地址")
39
+ with gr.Row():
40
+ password = gr.Textbox(placeholder="请输入openAI的登录密码")
41
+ with gr.Row():
42
  login = gr.Button("输完箱密点此登录")
43
  login.click(configure_chatbot, inputs=[email, password])
44
+ elif email and password:
45
  configure_chatbot(email,password)
46
 
47
  gr.Markdown("""<h2>开始聊吧 ...</h2>""")