zss2341 commited on
Commit
3a938b9
·
1 Parent(s): f377c61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -27,16 +27,16 @@ 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
-
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:
@@ -44,9 +44,9 @@ with gr.Blocks() as demo:
44
 
45
  gr.Markdown("""<h2>点完登录就开始聊吧 ...</h2>""")
46
  chatbot1 = gr.Chatbot()
47
- message = gr.Textbox(placeholder="Chat here")
48
  state = gr.State()
49
- submit = gr.Button("输入完成点击这里发送才有反应")
50
  submit.click(chatgpt_clone, inputs=[message, state], outputs=[chatbot1, state])
51
 
52
  demo.launch(debug = True, share=False)
 
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的登录密码")
40
  login = gr.Button("输完箱密点此登录,点了即可,没做反馈")
41
  login.click(configure_chatbot, inputs=[email, password])
42
  elif password:
 
44
 
45
  gr.Markdown("""<h2>点完登录就开始聊吧 ...</h2>""")
46
  chatbot1 = gr.Chatbot()
47
+ message = gr.Textbox(placeholder="聊天窗口")
48
  state = gr.State()
49
+ submit = gr.Button("输入后点击这里发送")
50
  submit.click(chatgpt_clone, inputs=[message, state], outputs=[chatbot1, state])
51
 
52
  demo.launch(debug = True, share=False)