Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -87,23 +87,23 @@ def analyze_audio(audio_file, progress=gr.Progress()):
|
|
| 87 |
|
| 88 |
if score_value >= 90:
|
| 89 |
grade, quality = "A", "EXCELLENT"
|
| 90 |
-
color = "
|
| 91 |
recommendation = "Excellent for TTS dataset"
|
| 92 |
elif score_value >= 75:
|
| 93 |
grade, quality = "B", "GOOD"
|
| 94 |
-
color = "
|
| 95 |
recommendation = "Very good quality; suitable for TTS"
|
| 96 |
elif score_value >= 60:
|
| 97 |
grade, quality = "C", "FAIR"
|
| 98 |
-
color = "
|
| 99 |
recommendation = "Usable but may contain processing artifacts"
|
| 100 |
elif score_value >= 40:
|
| 101 |
grade, quality = "D", "POOR"
|
| 102 |
-
color = "
|
| 103 |
recommendation = "Not recommended for TTS (heavy processing)"
|
| 104 |
else:
|
| 105 |
grade, quality = "F", "CRITICAL"
|
| 106 |
-
color = "
|
| 107 |
recommendation = "Severely degraded or processed; avoid for TTS"
|
| 108 |
|
| 109 |
cleanliness_score = max(0, 100 - (medium * 5 + low * 3))
|
|
|
|
| 87 |
|
| 88 |
if score_value >= 90:
|
| 89 |
grade, quality = "A", "EXCELLENT"
|
| 90 |
+
color = "#b3ffb3"
|
| 91 |
recommendation = "Excellent for TTS dataset"
|
| 92 |
elif score_value >= 75:
|
| 93 |
grade, quality = "B", "GOOD"
|
| 94 |
+
color = "#ccffcc"
|
| 95 |
recommendation = "Very good quality; suitable for TTS"
|
| 96 |
elif score_value >= 60:
|
| 97 |
grade, quality = "C", "FAIR"
|
| 98 |
+
color = "#fff6b3"
|
| 99 |
recommendation = "Usable but may contain processing artifacts"
|
| 100 |
elif score_value >= 40:
|
| 101 |
grade, quality = "D", "POOR"
|
| 102 |
+
color = "#ffd9b3"
|
| 103 |
recommendation = "Not recommended for TTS (heavy processing)"
|
| 104 |
else:
|
| 105 |
grade, quality = "F", "CRITICAL"
|
| 106 |
+
color = "#ffb3b3"
|
| 107 |
recommendation = "Severely degraded or processed; avoid for TTS"
|
| 108 |
|
| 109 |
cleanliness_score = max(0, 100 - (medium * 5 + low * 3))
|