Update app.py
Browse files
app.py
CHANGED
@@ -28,23 +28,20 @@ def chatgpt_clone(inputs, history):
|
|
28 |
|
29 |
with gr.Blocks() as demo:
|
30 |
gr.Markdown("""<h3><center>一个代理,免验免翻</center></h3> """)
|
31 |
-
gr.Markdown("""<h3><center
|
32 |
gr.Markdown("""<h3><center>自用即可,能力有限</center></h3> """)
|
33 |
gr.Markdown("""<h3><center>网址常变,来去随缘</center></h3> """)
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
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="
|
48 |
state = gr.State()
|
49 |
submit = gr.Button("输入后点击这里发送")
|
50 |
submit.click(chatgpt_clone, inputs=[message, state], outputs=[chatbot1, state])
|
|
|
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 |
+
|
35 |
+
with gr.Row():
|
36 |
+
with gr.Column():
|
37 |
+
email = gr.Textbox(label="输入openAI的邮箱地址")
|
38 |
+
password = gr.Textbox(label="输入openAI的登录密码", type="password")
|
39 |
+
login = gr.Button("输完箱密点此登录,点了即可,没做反馈")
|
40 |
+
login.click(configure_chatbot, inputs=[email, password])
|
|
|
|
|
|
|
41 |
|
42 |
gr.Markdown("""<h3>点完登录就开始聊吧 ...</h3>""")
|
43 |
chatbot1 = gr.Chatbot()
|
44 |
+
message = gr.Textbox(placeholder="点这个框输入聊天内容,换行用shift enter", label="人类:", max_lines=10)
|
45 |
state = gr.State()
|
46 |
submit = gr.Button("输入后点击这里发送")
|
47 |
submit.click(chatgpt_clone, inputs=[message, state], outputs=[chatbot1, state])
|