Hunzla commited on
Commit
e9bd980
·
1 Parent(s): 1425742

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -1,3 +1,12 @@
1
  import gradio as gr
 
 
 
 
 
 
 
 
 
2
 
3
- gr.Interface.load("models/dima806/speech-accent-classification").launch()
 
1
  import gradio as gr
2
+ def transcribe:
3
+ gr.Interface.load("models/dima806/speech-accent-classification").launch()
4
+ iface = gr.Interface(
5
+ fn=transcribe,
6
+ inputs=gr.Audio(source="microphone", type="filepath"),
7
+ outputs="text",
8
+ title="Whisper Small Hindi",
9
+ description="Realtime demo for Hindi speech recognition using a fine-tuned Whisper small model.",
10
+ )
11
 
12
+ iface.launch()