Update app.py
Browse files
app.py
CHANGED
|
@@ -419,7 +419,7 @@ with gr.Blocks() as demo:
|
|
| 419 |
|
| 420 |
if __name__ == "__main__" or os.getenv("SYSTEM") == "spaces":
|
| 421 |
try:
|
| 422 |
-
get_local_model_gpu() # triggers GPU allocation during startup
|
| 423 |
except Exception as e:
|
| 424 |
# don't crash the app if warmup fails; logs will show details
|
| 425 |
print("Warmup failed:", e)
|
|
|
|
| 419 |
|
| 420 |
if __name__ == "__main__" or os.getenv("SYSTEM") == "spaces":
|
| 421 |
try:
|
| 422 |
+
get_local_model_gpu(model_id) # triggers GPU allocation during startup
|
| 423 |
except Exception as e:
|
| 424 |
# don't crash the app if warmup fails; logs will show details
|
| 425 |
print("Warmup failed:", e)
|