Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -61,11 +61,11 @@ def transcribe_audio(file_path):
|
|
61 |
else:
|
62 |
print("File is not readable. Check permissions.")
|
63 |
|
64 |
-
sample_rate, audio_data = wavfile.read(str(final_path))
|
65 |
|
66 |
|
67 |
-
transcription = model.transcribe(audio_data, sample_rate=sample_rate)
|
68 |
-
|
69 |
|
70 |
print(f"transcription {transcription}")
|
71 |
|
|
|
61 |
else:
|
62 |
print("File is not readable. Check permissions.")
|
63 |
|
64 |
+
#sample_rate, audio_data = wavfile.read(str(final_path))
|
65 |
|
66 |
|
67 |
+
#transcription = model.transcribe(audio_data, sample_rate=sample_rate)
|
68 |
+
transcription = model.transcribe(str(final_path))
|
69 |
|
70 |
print(f"transcription {transcription}")
|
71 |
|