kanyekuthi commited on
Commit
5ed22d6
·
1 Parent(s): 4ec497d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -2
app.py CHANGED
@@ -1,5 +1,20 @@
1
  import gradio as gr
2
 
3
  # gr.Interface.load("models/kanyekuthi/AfriSpeech-whisper-tiny").launch()
4
- gr.Interface.load("models/kanyekuthi/AfriSpeech-whisper-tiny")
5
- gr.launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
 
3
  # gr.Interface.load("models/kanyekuthi/AfriSpeech-whisper-tiny").launch()
4
+ # gr.Interface.load("models/kanyekuthi/AfriSpeech-whisper-tiny")
5
+ # gr.launch()
6
+
7
+ demo = gr.Interface(
8
+ main_note,
9
+ gr.Audio(sources=["microphone"]),
10
+ gr.Label(num_top_classes=4),
11
+ examples=[
12
+ [os.path.join(os.path.dirname(__file__),"audio/recording1.wav")],
13
+ [os.path.join(os.path.dirname(__file__),"audio/cantina.wav")],
14
+ ],
15
+ )
16
+
17
+ # demo.load("models/kanyekuthi/AfriSpeech-whisper-tiny")
18
+
19
+ if __name__ == "__main__":
20
+ demo.launch()