Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -497,7 +497,8 @@ class UltraSupremeAnalyzer:
|
|
497 |
breakdown["environmental"] = env_score
|
498 |
|
499 |
return min(score, 100), breakdown
|
500 |
-
|
|
|
501 |
def __init__(self):
|
502 |
self.interrogator = None
|
503 |
self.analyzer = UltraSupremeAnalyzer()
|
@@ -594,7 +595,7 @@ class UltraSupremeAnalyzer:
|
|
594 |
gc.collect()
|
595 |
else:
|
596 |
torch.cuda.empty_cache()
|
597 |
-
|
598 |
gpu_status = "⚡ ZeroGPU" if torch.cuda.is_available() else "💻 CPU"
|
599 |
|
600 |
# Format detected elements
|
@@ -672,9 +673,10 @@ def clear_outputs():
|
|
672 |
gc.collect()
|
673 |
if torch.cuda.is_available():
|
674 |
torch.cuda.empty_cache()
|
675 |
-
|
|
|
676 |
def create_interface():
|
677 |
-
|
678 |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
|
679 |
|
680 |
.gradio-container {
|
|
|
497 |
breakdown["environmental"] = env_score
|
498 |
|
499 |
return min(score, 100), breakdown
|
500 |
+
|
501 |
+
class UltraSupremeOptimizer:
|
502 |
def __init__(self):
|
503 |
self.interrogator = None
|
504 |
self.analyzer = UltraSupremeAnalyzer()
|
|
|
595 |
gc.collect()
|
596 |
else:
|
597 |
torch.cuda.empty_cache()
|
598 |
+
# ULTRA COMPREHENSIVE ANALYSIS REPORT
|
599 |
gpu_status = "⚡ ZeroGPU" if torch.cuda.is_available() else "💻 CPU"
|
600 |
|
601 |
# Format detected elements
|
|
|
673 |
gc.collect()
|
674 |
if torch.cuda.is_available():
|
675 |
torch.cuda.empty_cache()
|
676 |
+
return "", "", '<div style="text-align: center; padding: 1rem;"><div style="font-size: 2rem; color: #ccc;">--</div><div style="font-size: 0.875rem; color: #999;">Ultra Supreme Score</div></div>'
|
677 |
+
|
678 |
def create_interface():
|
679 |
+
css = """
|
680 |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
|
681 |
|
682 |
.gradio-container {
|