Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from os import listdir
|
|
4 |
import glob
|
5 |
pipe = pipeline(model="fimster/whisper-small-sv-SE") # change to "your-username/the-name-you-picked"
|
6 |
print(glob.glob("./images/"))
|
7 |
-
|
8 |
def transcribe(audio):
|
9 |
text = pipe(audio)["text"]
|
10 |
return text
|
|
|
4 |
import glob
|
5 |
pipe = pipeline(model="fimster/whisper-small-sv-SE") # change to "your-username/the-name-you-picked"
|
6 |
print(glob.glob("./images/"))
|
7 |
+
|
8 |
def transcribe(audio):
|
9 |
text = pipe(audio)["text"]
|
10 |
return text
|