SamiKoen commited on
Commit
9d08130
·
1 Parent(s): b4fdc9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -143,14 +143,14 @@ with gr.Blocks(css="""#col_container { margin-left: auto; margin-right: auto;} #
143
  placeholder="Buraya yazın, yanıtlayalım.", show_label=False)
144
  state = gr.State([])
145
  with gr.Accordion("", open=False, visible=False):
146
- top_p = gr.Slider(minimum=-0, maximum=1.0, value=0,
147
  step=0.05, interactive=False, visible=False)
148
  temperature = gr.Slider(
149
- minimum=-0, maximum=5.0, value=0.5, step=0.1, interactive=False, visible=False)
150
  chat_counter = gr.Number(value=0, visible=False, precision=0)
151
 
152
  inputs.submit(predict, [system_msg, inputs, top_p, temperature, chat_counter, chatbot, state], [
153
  chatbot, state, chat_counter],) # openai_api_key
154
  inputs.submit(reset_textbox, [], [inputs])
155
 
156
- demo.queue(max_size=20, concurrency_count=20).launch(debug=True)
 
143
  placeholder="Buraya yazın, yanıtlayalım.", show_label=False)
144
  state = gr.State([])
145
  with gr.Accordion("", open=False, visible=False):
146
+ top_p = gr.Slider(minimum=-0, maximum=1.0, value=0.5,
147
  step=0.05, interactive=False, visible=False)
148
  temperature = gr.Slider(
149
+ minimum=-0, maximum=5.0, value=0.1, step=0.1, interactive=False, visible=False)
150
  chat_counter = gr.Number(value=0, visible=False, precision=0)
151
 
152
  inputs.submit(predict, [system_msg, inputs, top_p, temperature, chat_counter, chatbot, state], [
153
  chatbot, state, chat_counter],) # openai_api_key
154
  inputs.submit(reset_textbox, [], [inputs])
155
 
156
+ demo.queue(max_size=10, concurrency_count=10).launch(debug=True)