Spaces:
Sleeping
Sleeping
Update utils/accent_analysis.py
Browse files- utils/accent_analysis.py +1 -1
utils/accent_analysis.py
CHANGED
|
@@ -46,6 +46,6 @@ def analyze_accent(audio_tensor, sample_rate, model):
|
|
| 46 |
readable = ACCENT_LABELS.get(accent_label, accent_label.title() + " accent")
|
| 47 |
return readable, round(score[0].item() * 100, 2)
|
| 48 |
except Exception:
|
| 49 |
-
st.error("
|
| 50 |
st.code(traceback.format_exc())
|
| 51 |
return None, None
|
|
|
|
| 46 |
readable = ACCENT_LABELS.get(accent_label, accent_label.title() + " accent")
|
| 47 |
return readable, round(score[0].item() * 100, 2)
|
| 48 |
except Exception:
|
| 49 |
+
st.error("Error during classification.")
|
| 50 |
st.code(traceback.format_exc())
|
| 51 |
return None, None
|