Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -141,11 +141,25 @@ def analyze_audio(audio_file, progress=gr.Progress()):
|
|
| 141 |
"spectral": spectral,
|
| 142 |
"lufs": lufs,
|
| 143 |
"issues": issues,
|
| 144 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
"synthetic": synthetic,
|
| 146 |
"timestamp": datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
| 147 |
}
|
| 148 |
|
|
|
|
| 149 |
progress(0.92, desc="Rendering PNG report...")
|
| 150 |
create_report(audio_data, str(output_file))
|
| 151 |
|
|
|
|
| 141 |
"spectral": spectral,
|
| 142 |
"lufs": lufs,
|
| 143 |
"issues": issues,
|
| 144 |
+
# Use the full score dictionary (correct)
|
| 145 |
+
"score": {
|
| 146 |
+
"score": score,
|
| 147 |
+
"grade": grade,
|
| 148 |
+
"quality": quality,
|
| 149 |
+
"recommendation": recommendation,
|
| 150 |
+
"cleanliness_score": cleanliness_score,
|
| 151 |
+
"processing_severity": processing_severity,
|
| 152 |
+
"critical": critical,
|
| 153 |
+
"high": high,
|
| 154 |
+
"medium": medium,
|
| 155 |
+
"low": low,
|
| 156 |
+
"color": color
|
| 157 |
+
},
|
| 158 |
"synthetic": synthetic,
|
| 159 |
"timestamp": datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
| 160 |
}
|
| 161 |
|
| 162 |
+
|
| 163 |
progress(0.92, desc="Rendering PNG report...")
|
| 164 |
create_report(audio_data, str(output_file))
|
| 165 |
|