antonbol commited on
Commit
e7c815d
·
1 Parent(s): 57027fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from numpy import random
4
  pipe = pipeline(model="fimster/whisper-small-sv-SE") # change to "your-username/the-name-you-picked"
5
  images = ["katt", "melon", "hund", "banan"]
6
  image = random.choice(images)
7
- image = gr.Image("./images/" + image + ".jpeg")
8
  def transcribe(audio):
9
  text = pipe(audio)["text"]
10
  return text
 
4
  pipe = pipeline(model="fimster/whisper-small-sv-SE") # change to "your-username/the-name-you-picked"
5
  images = ["katt", "melon", "hund", "banan"]
6
  image = random.choice(images)
7
+ query_image = gr.Image("./images/" + image + ".jpeg")
8
  def transcribe(audio):
9
  text = pipe(audio)["text"]
10
  return text