xiaolv commited on
Commit
f74b6db
1 Parent(s): e9954ba

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("Send")
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"))