xiaolv commited on
Commit
f67d90c
1 Parent(s): 1a78461

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -52,9 +52,9 @@ with gr.Blocks() as dialog_app:
52
  style = gr.Dropdown(label="回答倾向模式选择", choices=["creative", "balanced", "precise"], multiselect=False,
53
  value="precise", type="value")
54
 
55
- inputs.submit(get_model_reply, [inputs, style, cookies, ], [chatbot, state])
56
  send = gr.Button("发送请求.....")
57
- send.click(get_model_reply, [inputs, style, cookies, ], [chatbot, state],api_name="xiaolvgpt")
58
 
59
  # launches the app in a new local port
60
  dialog_app.launch(show_error=True)
 
52
  style = gr.Dropdown(label="回答倾向模式选择", choices=["creative", "balanced", "precise"], multiselect=False,
53
  value="precise", type="value")
54
 
55
+ inputs.submit(get_model_reply, [inputs, style, cookies,state ], [chatbot, state])
56
  send = gr.Button("发送请求.....")
57
+ send.click(get_model_reply, [inputs, style, cookies, state], [chatbot, state],api_name="xiaolvgpt")
58
 
59
  # launches the app in a new local port
60
  dialog_app.launch(show_error=True)