Spaces:
Runtime error
Runtime error
accent detection
Browse files
app.py
CHANGED
|
@@ -72,6 +72,8 @@ def analyze_accent(url_or_file):
|
|
| 72 |
if len(transcript[0].strip()) < 3:
|
| 73 |
return "Could not understand speech. Please try another video."
|
| 74 |
|
|
|
|
|
|
|
| 75 |
# Accent classification
|
| 76 |
result = classify_accent(waveform, sample_rate)
|
| 77 |
|
|
|
|
| 72 |
if len(transcript[0].strip()) < 3:
|
| 73 |
return "Could not understand speech. Please try another video."
|
| 74 |
|
| 75 |
+
print("Transcript:", transcript)
|
| 76 |
+
|
| 77 |
# Accent classification
|
| 78 |
result = classify_accent(waveform, sample_rate)
|
| 79 |
|