SamiKoen commited on
Commit
b4fdc9d
·
1 Parent(s): 5adb246

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -143,10 +143,10 @@ 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=1.0,
147
  step=0.05, interactive=False, visible=False)
148
  temperature = gr.Slider(
149
- minimum=-0, maximum=5.0, value=1.0, 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], [
 
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], [