Spaces:
Running on Zero
Running on Zero
Deploy InstantRetouch BILA ZeroGPU Space
Browse files- demo_runtime/manager.py +0 -2
demo_runtime/manager.py
CHANGED
|
@@ -92,8 +92,6 @@ class DemoManager:
|
|
| 92 |
if image is None:
|
| 93 |
raise ValueError("Please upload an image.")
|
| 94 |
instruction = (instruction or "").strip()
|
| 95 |
-
if not instruction:
|
| 96 |
-
raise ValueError("Please enter an edit instruction.")
|
| 97 |
if model_key not in self.manifest["models"]:
|
| 98 |
raise ValueError(f"Unknown model: {model_key}")
|
| 99 |
|
|
|
|
| 92 |
if image is None:
|
| 93 |
raise ValueError("Please upload an image.")
|
| 94 |
instruction = (instruction or "").strip()
|
|
|
|
|
|
|
| 95 |
if model_key not in self.manifest["models"]:
|
| 96 |
raise ValueError(f"Unknown model: {model_key}")
|
| 97 |
|