Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -301,12 +301,12 @@ with gr.Blocks(css=CUSTOM_CSS, title="Video Upscaler") as demo:
|
|
| 301 |
)
|
| 302 |
num_workers = gr.Number(
|
| 303 |
label="Workers",
|
| 304 |
-
value=(
|
| 305 |
precision=0,
|
| 306 |
minimum=2,
|
| 307 |
maximum=64,
|
| 308 |
info="Number of worker threads for multi-threaded upscaling. Higher values may speed up processing but use more VRAM.",
|
| 309 |
-
|
| 310 |
)
|
| 311 |
|
| 312 |
upscale_button = gr.Button("Upscale Video", variant="primary")
|
|
|
|
| 301 |
)
|
| 302 |
num_workers = gr.Number(
|
| 303 |
label="Workers",
|
| 304 |
+
value=(42 if IS_ZERO_GPU else 8),
|
| 305 |
precision=0,
|
| 306 |
minimum=2,
|
| 307 |
maximum=64,
|
| 308 |
info="Number of worker threads for multi-threaded upscaling. Higher values may speed up processing but use more VRAM.",
|
| 309 |
+
interactive=(not IS_ZERO_GPU),
|
| 310 |
)
|
| 311 |
|
| 312 |
upscale_button = gr.Button("Upscale Video", variant="primary")
|