Spaces:
Runtime error
Runtime error
Edward Nagy
commited on
Use model
Browse files
app.py
CHANGED
@@ -4,13 +4,12 @@ import requests
|
|
4 |
from moviepy.editor import *
|
5 |
import os
|
6 |
|
7 |
-
|
8 |
|
9 |
|
10 |
def transcribe_audio(audio_file):
|
11 |
print("Transcribing audio: ", audio_file)
|
12 |
-
text = "
|
13 |
-
# text = pipe(audio_file)["text"]
|
14 |
return text
|
15 |
|
16 |
|
|
|
4 |
from moviepy.editor import *
|
5 |
import os
|
6 |
|
7 |
+
pipe = pipeline(model="esnagy/whisper-small-hu")
|
8 |
|
9 |
|
10 |
def transcribe_audio(audio_file):
|
11 |
print("Transcribing audio: ", audio_file)
|
12 |
+
text = pipe(audio_file)["text"]
|
|
|
13 |
return text
|
14 |
|
15 |
|