antonbol commited on
Commit
8a7e5e8
1 Parent(s): e9f3f04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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", "hund", "banan"]
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()