clementsan commited on
Commit
e4c8a25
1 Parent(s): e0b45d0

Improve UI with additional gradio rows

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -228,9 +228,12 @@ def demo():
228
  llm_btn = gr.Radio(list_llm_simple, \
229
  label="LLM models", value = list_llm_simple[0], type="index", info="Choose your LLM model")
230
  with gr.Accordion("Advanced options - LLM model", open=False):
231
- slider_temperature = gr.Slider(minimum = 0.0, maximum = 1.0, value=0.7, step=0.1, label="Temperature", info="Model temperature", interactive=True)
232
- slider_maxtokens = gr.Slider(minimum = 224, maximum = 4096, value=1024, step=32, label="Max Tokens", info="Model max tokens", interactive=True)
233
- slider_topk = gr.Slider(minimum = 1, maximum = 10, value=3, step=1, label="top-k samples", info="Model top-k samples", interactive=True)
 
 
 
234
  with gr.Row():
235
  llm_progress = gr.Textbox(value="None",label="QA chain initialization")
236
  with gr.Row():
 
228
  llm_btn = gr.Radio(list_llm_simple, \
229
  label="LLM models", value = list_llm_simple[0], type="index", info="Choose your LLM model")
230
  with gr.Accordion("Advanced options - LLM model", open=False):
231
+ with gr.Row():
232
+ slider_temperature = gr.Slider(minimum = 0.0, maximum = 1.0, value=0.7, step=0.1, label="Temperature", info="Model temperature", interactive=True)
233
+ with gr.Row():
234
+ slider_maxtokens = gr.Slider(minimum = 224, maximum = 4096, value=1024, step=32, label="Max Tokens", info="Model max tokens", interactive=True)
235
+ with gr.Row():
236
+ slider_topk = gr.Slider(minimum = 1, maximum = 10, value=3, step=1, label="top-k samples", info="Model top-k samples", interactive=True)
237
  with gr.Row():
238
  llm_progress = gr.Textbox(value="None",label="QA chain initialization")
239
  with gr.Row():