antonbol commited on
Commit
7ec4e24
·
1 Parent(s): bb810a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- onlyfiles = [f for f in listdir("./images/") if isfile(join(mypath, f))]
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"]