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