Ludvig Doeser commited on
Commit
c774838
1 Parent(s): 51342c1

link should be shareable already

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,9 +1,8 @@
 
1
  from transformers import pipeline
2
 
3
  pipe = pipeline(model="LudvigDoeser/swedish_asr_model_training") # change to "your-username/the-name-you-picked"
4
 
5
- import gradio as gr
6
-
7
  def transcribe(audio):
8
  text = pipe(audio)["text"]
9
  return text
@@ -16,4 +15,4 @@ iface = gr.Interface(
16
  description="Realtime demo for Swedish speech recognition using a fine-tuned Whisper small model.",
17
  )
18
 
19
- iface.launch(share=True)
1
+ import gradio as gr
2
  from transformers import pipeline
3
 
4
  pipe = pipeline(model="LudvigDoeser/swedish_asr_model_training") # change to "your-username/the-name-you-picked"
5
 
 
 
6
  def transcribe(audio):
7
  text = pipe(audio)["text"]
8
  return text
15
  description="Realtime demo for Swedish speech recognition using a fine-tuned Whisper small model.",
16
  )
17
 
18
+ iface.launch()