SamiKoen commited on
Commit
c5c5fbb
·
1 Parent(s): 567b08e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -147,10 +147,10 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
147
  temperature = gr.Slider( minimum=-0, maximum=5.0, value=1.0, step=0.1, interactive=True, label="Temperature",)
148
  chat_counter = gr.Number(value=0, visible=False, precision=0)
149
 
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
 
 
147
  temperature = gr.Slider( minimum=-0, maximum=5.0, value=1.0, step=0.1, interactive=True, label="Temperature",)
148
  chat_counter = gr.Number(value=0, visible=False, precision=0)
149
 
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