Spaces:
Running
Running
Fix: replace gr.Number with gr.Slider for max files input
Browse filesgr.Number with precision/minimum params may not be supported
in the Gradio version on the Space, causing silent exit.
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.
|
|
|
|
| 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"
|