Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
from numpy import random
|
4 |
from PIL import Image
|
5 |
pipe = pipeline(model="fimster/whisper-small-sv-SE") # change to "your-username/the-name-you-picked"
|
6 |
-
images = ["katt", "melon", "
|
7 |
image = random.choice(images)
|
8 |
|
9 |
def transcribe(audio, img):
|
@@ -23,7 +23,7 @@ iface = gr.Interface(
|
|
23 |
inputs=[gr.Audio(source="microphone", type="filepath"), gr.Image("./images/" + image + ".jpeg")],
|
24 |
outputs="text",
|
25 |
title="Whisper Small Swedish",
|
26 |
-
description="Proof of concept for Duolingo-type gamified language learning",
|
27 |
)
|
28 |
|
29 |
iface.launch()
|
|
|
3 |
from numpy import random
|
4 |
from PIL import Image
|
5 |
pipe = pipeline(model="fimster/whisper-small-sv-SE") # change to "your-username/the-name-you-picked"
|
6 |
+
images = ["katt", "melon", "banan"]
|
7 |
image = random.choice(images)
|
8 |
|
9 |
def transcribe(audio, img):
|
|
|
23 |
inputs=[gr.Audio(source="microphone", type="filepath"), gr.Image("./images/" + image + ".jpeg")],
|
24 |
outputs="text",
|
25 |
title="Whisper Small Swedish",
|
26 |
+
description="Proof of concept for Duolingo-type gamified language learning. Record and say what the thing in the picture is, then click submit and the model will check if you were correct!",
|
27 |
)
|
28 |
|
29 |
iface.launch()
|