Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -500,7 +500,9 @@ class UltraSupremeAnalyzer:
|
|
| 500 |
breakdown["environmental"] = env_score
|
| 501 |
|
| 502 |
return min(score, 100), breakdown
|
| 503 |
-
|
|
|
|
|
|
|
| 504 |
def __init__(self):
|
| 505 |
self.interrogator = None
|
| 506 |
self.analyzer = UltraSupremeAnalyzer()
|
|
@@ -552,8 +554,7 @@ class UltraSupremeAnalyzer:
|
|
| 552 |
image.thumbnail((max_size, max_size), Image.Resampling.LANCZOS)
|
| 553 |
|
| 554 |
return image
|
| 555 |
-
|
| 556 |
-
@spaces.GPU
|
| 557 |
def generate_ultra_supreme_prompt(self, image):
|
| 558 |
try:
|
| 559 |
if not self.is_initialized:
|
|
|
|
| 500 |
breakdown["environmental"] = env_score
|
| 501 |
|
| 502 |
return min(score, 100), breakdown
|
| 503 |
+
|
| 504 |
+
|
| 505 |
+
class UltraSupremeOptimizer:
|
| 506 |
def __init__(self):
|
| 507 |
self.interrogator = None
|
| 508 |
self.analyzer = UltraSupremeAnalyzer()
|
|
|
|
| 554 |
image.thumbnail((max_size, max_size), Image.Resampling.LANCZOS)
|
| 555 |
|
| 556 |
return image
|
| 557 |
+
@spaces.GPU
|
|
|
|
| 558 |
def generate_ultra_supreme_prompt(self, image):
|
| 559 |
try:
|
| 560 |
if not self.is_initialized:
|