antonbol commited on
Commit
24734e8
·
1 Parent(s): 67a2675

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ 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
-
6
  def transcribe(audio):
7
  text = pipe(audio)["text"]
8
  return text
 
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):
7
  text = pipe(audio)["text"]
8
  return text