Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -224,11 +224,6 @@ class UpscalerApp:
|
|
| 224 |
return None
|
| 225 |
model_path = local_model_path
|
| 226 |
|
| 227 |
-
elif not os.path.exists(model_path):
|
| 228 |
-
gr.Warning(f"Local model file not found at: {model_path}")
|
| 229 |
-
return None
|
| 230 |
-
|
| 231 |
-
|
| 232 |
# Load the upscaler model with specified tile and precision settings
|
| 233 |
scaler_beta = load_upscaler_model(model=model_path, tile=tile, tile_overlap=tile_overlap, device=DEVICE, half=half)
|
| 234 |
|
|
|
|
| 224 |
return None
|
| 225 |
model_path = local_model_path
|
| 226 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 227 |
# Load the upscaler model with specified tile and precision settings
|
| 228 |
scaler_beta = load_upscaler_model(model=model_path, tile=tile, tile_overlap=tile_overlap, device=DEVICE, half=half)
|
| 229 |
|