zss2341 commited on
Commit
ffeda60
·
1 Parent(s): 233a051

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -27,22 +27,22 @@ def chatgpt_clone(inputs, history):
27
  return history, history
28
 
29
  with gr.Blocks() as demo:
30
- gr.Markdown("""<h2><center>一个代理,免验免翻</center></h2> """)
31
- gr.Markdown("""<h2><center>兴趣所致,用爱发电</center></h2> """)
32
- gr.Markdown("""<h2><center>自用即可,能力有限</center></h2> """)
33
- gr.Markdown("""<h2><center>网址常变,来去随缘</center></h2> """)
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的登录密码", type = password)
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()
47
  message = gr.Textbox(placeholder="点这个框输入聊天内容", label="人类:", max_lines=10)
48
  state = gr.State()
 
27
  return history, history
28
 
29
  with gr.Blocks() as demo:
30
+ gr.Markdown("""<h3><center>一个代理,免验免翻</center></h3> """)
31
+ gr.Markdown("""<h3><center>兴趣所致,用爱发电</center></h3> """)
32
+ gr.Markdown("""<h3><center>自用即可,能力有限</center></h3> """)
33
+ gr.Markdown("""<h3><center>网址常变,来去随缘</center></h3> """)
34
  if not password:
35
+ gr.Markdown("""<h3>请使用openAI账户登录</h3>""")
36
  with gr.Row():
37
  with gr.Column():
38
  email = gr.Textbox(label="输入openAI的邮箱地址")
39
+ password = gr.Textbox(label="输入openAI的登录密码", type=password)
40
  login = gr.Button("输完箱密点此登录,点了即可,没做反馈")
41
  login.click(configure_chatbot, inputs=[email, password])
42
  elif password:
43
  configure_chatbot(email, password)
44
 
45
+ gr.Markdown("""<h3>点完登录就开始聊吧 ...</h3>""")
46
  chatbot1 = gr.Chatbot()
47
  message = gr.Textbox(placeholder="点这个框输入聊天内容", label="人类:", max_lines=10)
48
  state = gr.State()