Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
from os import listdir
|
|
|
4 |
pipe = pipeline(model="fimster/whisper-small-sv-SE") # change to "your-username/the-name-you-picked"
|
5 |
-
|
6 |
print(onlyfiles)
|
7 |
def transcribe(audio):
|
8 |
text = pipe(audio)["text"]
|
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
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 |
print(onlyfiles)
|
8 |
def transcribe(audio):
|
9 |
text = pipe(audio)["text"]
|