eengel7 commited on
Commit
c39b7ff
1 Parent(s): dbfe47a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -19
app.py CHANGED
@@ -29,23 +29,4 @@ iface = gr.Interface(
29
 
30
  iface.launch()
31
 
32
- demo = gr.Blocks()
33
-
34
- with demo:
35
-
36
- title="Whisper Small Swedish",
37
- description="Realtime demo for Swedish speech recognition using a fine-tuned Whisper small model."
38
-
39
- inputs_audio = gr.Audio(source="microphone", type="filepath"),
40
-
41
- text = gr.Textbox()
42
- translation = gr.Label()
43
-
44
- b1 = gr.Button("Record audio")
45
- b2 = gr.Button("Translate text")
46
-
47
- b1.click(transcribe, inputs=inputs_audio, outputs=text)
48
- b2.click(translate, inputs=text, outputs=translation)
49
-
50
- demo.launch()
51
 
 
29
 
30
  iface.launch()
31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32