vtrv.vls commited on
Commit
4bea324
·
1 Parent(s): 8c11891

Clear inputs on model change

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -76,8 +76,8 @@ def tab_arena():
76
  with gradio.Row():
77
  with gradio.Accordion("Parameters", open=False):
78
  context = gradio.Checkbox(label="No context", value=False)
79
- top_p = gradio.Slider(label='Top P', minimum=0, maximum=1, value=1, step=0.5, interactive=True)
80
- temp = gradio.Slider(label='Temperature', minimum=0, maximum=1, value=0.7, step=0.5, interactive=True)
81
  max_tokens = gradio.Slider(label='Max ouput tokens', minimum=1, maximum=2048, value=512, step=1, interactive=True)
82
 
83
  with gradio.Row():
 
76
  with gradio.Row():
77
  with gradio.Accordion("Parameters", open=False):
78
  context = gradio.Checkbox(label="No context", value=False)
79
+ top_p = gradio.Slider(label='Top P', minimum=0, maximum=1, value=1, step=0.05, interactive=True)
80
+ temp = gradio.Slider(label='Temperature', minimum=0, maximum=1, value=0.7, step=0.05, interactive=True)
81
  max_tokens = gradio.Slider(label='Max ouput tokens', minimum=1, maximum=2048, value=512, step=1, interactive=True)
82
 
83
  with gradio.Row():