Add-Vishnu commited on
Commit
bb22605
1 Parent(s): a8c65ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -4,15 +4,22 @@ from asr import transcribe,detect_language,transcribe_lang
4
  demo = gr.Interface(transcribe,
5
  inputs = "microphone",
6
  # gr.Audio(sources=["microphone"]),
7
- outputs=["text","text"])
 
 
8
  demo2 = gr.Interface(detect_language,
9
  inputs = "microphone",
10
  # gr.Audio(sources=["microphone"]),
11
- outputs=["text","text"])
 
 
12
  demo3 = gr.Interface(transcribe_lang,
13
  inputs = ["microphone","text"],
14
  # gr.Audio(sources=["microphone"]),
15
- outputs=["text","text"])
 
 
 
16
 
17
  tabbed_interface = gr.TabbedInterface([demo,demo2,demo3],["Transcribe by auto detecting language","Detect language","Transcribe by providing language"])
18
 
 
4
  demo = gr.Interface(transcribe,
5
  inputs = "microphone",
6
  # gr.Audio(sources=["microphone"]),
7
+ outputs=["text","text"],
8
+ examples=["./Samples/Hindi_1.mp3","./Samples/Hindi_2.mp3","./Samples/Tamil_1.mp3","./Samples/Tamil_2.mp3","./Samples/Marathi_1.mp3","./Samples/Marathi_2.mp3","./Samples/Nepal_1.mp3","./Samples/Nepal_2.mp3"]
9
+ )
10
  demo2 = gr.Interface(detect_language,
11
  inputs = "microphone",
12
  # gr.Audio(sources=["microphone"]),
13
+ outputs=["text","text"],
14
+ examples=["./Samples/Hindi_1.mp3","./Samples/Hindi_2.mp3","./Samples/Tamil_1.mp3","./Samples/Tamil_2.mp3","./Samples/Marathi_1.mp3","./Samples/Marathi_2.mp3","./Samples/Nepal_1.mp3","./Samples/Nepal_2.mp3"]
15
+ )
16
  demo3 = gr.Interface(transcribe_lang,
17
  inputs = ["microphone","text"],
18
  # gr.Audio(sources=["microphone"]),
19
+ outputs=["text","text"],
20
+ examples=[["./Samples/Hindi_1.mp3","hin"],["./Samples/Hindi_2.mp3","hin"],["./Samples/Tamil_1.mp3","tam"],["./Samples/Tamil_2.mp3","tam"],["./Samples/Marathi_1.mp3","mar"],["./Samples/Marathi_2.mp3","mar"],["./Samples/climate ex short.wav","eng"]]
21
+ )
22
+
23
 
24
  tabbed_interface = gr.TabbedInterface([demo,demo2,demo3],["Transcribe by auto detecting language","Detect language","Transcribe by providing language"])
25