Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -554,9 +554,9 @@ def optimize_image(self, image):
|
|
| 554 |
|
| 555 |
return image
|
| 556 |
|
| 557 |
-
|
| 558 |
-
|
| 559 |
-
|
| 560 |
if not self.is_initialized:
|
| 561 |
if not self.initialize_model():
|
| 562 |
return "❌ Model initialization failed.", "Please refresh and try again.", 0, {}
|
|
|
|
| 554 |
|
| 555 |
return image
|
| 556 |
|
| 557 |
+
@spaces.GPU
|
| 558 |
+
def generate_ultra_supreme_prompt(self, image):
|
| 559 |
+
try:
|
| 560 |
if not self.is_initialized:
|
| 561 |
if not self.initialize_model():
|
| 562 |
return "❌ Model initialization failed.", "Please refresh and try again.", 0, {}
|