pedroapfilho commited on
Commit
0199d58
·
unverified ·
1 Parent(s): eb72117

Fix: replace gr.Number with gr.Slider for max files input

Browse files

gr.Number with precision/minimum params may not be supported
in the Gradio version on the Space, causing silent exit.

Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -768,11 +768,9 @@ def create_ui():
768
  label="HF Token (optional, for private repos)",
769
  type="password",
770
  )
771
- lora_hf_max = gr.Number(
 
772
  label="Max files",
773
- value=50,
774
- minimum=1,
775
- precision=0,
776
  )
777
  lora_hf_btn = gr.Button(
778
  "Download & Scan", variant="primary"
 
768
  label="HF Token (optional, for private repos)",
769
  type="password",
770
  )
771
+ lora_hf_max = gr.Slider(
772
+ minimum=1, maximum=500, value=50, step=1,
773
  label="Max files",
 
 
 
774
  )
775
  lora_hf_btn = gr.Button(
776
  "Download & Scan", variant="primary"