antonbol commited on
Commit
b9d1b4c
·
1 Parent(s): 8f84fb8

Update app.py

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