Update app.py
Browse files
app.py
CHANGED
|
@@ -167,7 +167,7 @@ def speech_to_text(video):
|
|
| 167 |
# audio = AudioSegment.from_file(video)
|
| 168 |
# audio.export('temp.mp3', format="mp3")
|
| 169 |
# transcript= transcriber.transcribe('temp.mp3')['text']
|
| 170 |
-
transcript = transcriber.transcribe(video)
|
| 171 |
print('transcript:', transcript)
|
| 172 |
return transcript
|
| 173 |
|
|
|
|
| 167 |
# audio = AudioSegment.from_file(video)
|
| 168 |
# audio.export('temp.mp3', format="mp3")
|
| 169 |
# transcript= transcriber.transcribe('temp.mp3')['text']
|
| 170 |
+
transcript = transcriber.transcribe(video).text
|
| 171 |
print('transcript:', transcript)
|
| 172 |
return transcript
|
| 173 |
|