Spaces:
Paused
Paused
Upload app.py
Browse files
app.py
CHANGED
@@ -52,10 +52,10 @@ with gr.Blocks() as dialog_app:
|
|
52 |
value="precise", type="value")
|
53 |
|
54 |
inputs.submit(get_model_reply, [inputs, style, cookies, state], [chatbot, state])
|
55 |
-
send = gr.Button("
|
56 |
send.click(get_model_reply, [inputs, style, cookies, state], [chatbot, state],api_name="xiaolvgpt")
|
57 |
|
58 |
# launches the app in a new local port
|
59 |
-
dialog_app.launch()
|
60 |
# 为网站设置密码防止滥用
|
61 |
# dialog_app.launch(auth=("admin", "pass1234"))
|
|
|
52 |
value="precise", type="value")
|
53 |
|
54 |
inputs.submit(get_model_reply, [inputs, style, cookies, state], [chatbot, state])
|
55 |
+
send = gr.Button("发送请求.....")
|
56 |
send.click(get_model_reply, [inputs, style, cookies, state], [chatbot, state],api_name="xiaolvgpt")
|
57 |
|
58 |
# launches the app in a new local port
|
59 |
+
dialog_app.launch(show_error=True,share=True)
|
60 |
# 为网站设置密码防止滥用
|
61 |
# dialog_app.launch(auth=("admin", "pass1234"))
|