idolezal commited on
Commit
26a2ced
β€’
1 Parent(s): 6d1eaa5

Specified minimum, default and step of input `parameters`

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -245,7 +245,12 @@ with gr.Blocks(theme=gr.themes.Soft(text_size=text_md), css=custom_css) as main:
245
  label="Model type",
246
  choices=("chat", "pretrained", "ensamble"),
247
  )
248
- submission_inputs["parameters"] = gr.Number(label='Parameters (B)')
 
 
 
 
 
249
 
250
  with gr.Row():
251
  submission_inputs["precision"] = gr.Dropdown(
 
245
  label="Model type",
246
  choices=("chat", "pretrained", "ensamble"),
247
  )
248
+ submission_inputs["parameters"] = gr.Number(
249
+ label='Parameters (B)',
250
+ default=0.1,
251
+ minimum=0,
252
+ step=0.1,
253
+ )
254
 
255
  with gr.Row():
256
  submission_inputs["precision"] = gr.Dropdown(