SamiKoen commited on
Commit
16c191d
·
1 Parent(s): e9ca5de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -150,9 +150,9 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
150
  #Event handling
151
  inputs.submit( predict, [system_msg, inputs, top_p, temperature, chat_counter, chatbot, state], [chatbot, state, chat_counter, server_status_code],) #openai_api_key
152
  b1.click( predict, [system_msg, inputs, top_p, temperature, chat_counter, chatbot, state], [chatbot, state, chat_counter, server_status_code],) #openai_api_key
153
- '''
154
  b1.click(reset_textbox, [], [inputs])
155
- inputs.submit(reset_textbox, [], [inputs])
156
- '''
157
 
158
  demo.queue(max_size=20, concurrency_count=20).launch(debug=True)
 
150
  #Event handling
151
  inputs.submit( predict, [system_msg, inputs, top_p, temperature, chat_counter, chatbot, state], [chatbot, state, chat_counter, server_status_code],) #openai_api_key
152
  b1.click( predict, [system_msg, inputs, top_p, temperature, chat_counter, chatbot, state], [chatbot, state, chat_counter, server_status_code],) #openai_api_key
153
+
154
  b1.click(reset_textbox, [], [inputs])
155
+ inputs.submit(reset_textbox, [], [inputs]
156
+
157
 
158
  demo.queue(max_size=20, concurrency_count=20).launch(debug=True)