Update app.py
Browse files
app.py
CHANGED
|
@@ -105,7 +105,7 @@ def transcribe_audio(audio_path):
|
|
| 105 |
print(f"Transcription successful: {transcription}")
|
| 106 |
|
| 107 |
duration_s = get_audio_duration(audio_path)
|
| 108 |
-
wpm = compute_wpm(
|
| 109 |
pace = categorize_wpm(wpm)
|
| 110 |
print(f" > Pace detected: {pace.upper()} ({wpm:.1f} WPM)")
|
| 111 |
|
|
|
|
| 105 |
print(f"Transcription successful: {transcription}")
|
| 106 |
|
| 107 |
duration_s = get_audio_duration(audio_path)
|
| 108 |
+
wpm = compute_wpm(transcription, duration_s)
|
| 109 |
pace = categorize_wpm(wpm)
|
| 110 |
print(f" > Pace detected: {pace.upper()} ({wpm:.1f} WPM)")
|
| 111 |
|