Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
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
|