unijoh commited on
Commit
3291f24
·
verified ·
1 Parent(s): 2725be0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -8
app.py CHANGED
@@ -6,10 +6,7 @@ from lid import identify_language
6
  def main():
7
  asr_interface = gr.Interface(
8
  fn=transcribe,
9
- inputs=[
10
- gr.Audio(type="filepath", label="Microphone"),
11
- gr.Audio(type="filepath", label="Upload")
12
- ],
13
  outputs="text",
14
  title="Faroese ASR Demo",
15
  description="Automatic Speech Recognition for Faroese"
@@ -25,10 +22,7 @@ def main():
25
 
26
  lid_interface = gr.Interface(
27
  fn=identify_language,
28
- inputs=[
29
- gr.Audio(type="filepath", label="Microphone"),
30
- gr.Audio(type="filepath", label="Upload")
31
- ],
32
  outputs="label",
33
  title="Language Identification",
34
  description="Identify the language of the spoken input"
 
6
  def main():
7
  asr_interface = gr.Interface(
8
  fn=transcribe,
9
+ inputs=gr.Audio(source="microphone", type="filepath", label=None),
 
 
 
10
  outputs="text",
11
  title="Faroese ASR Demo",
12
  description="Automatic Speech Recognition for Faroese"
 
22
 
23
  lid_interface = gr.Interface(
24
  fn=identify_language,
25
+ inputs=gr.Audio(source="microphone", type="filepath", label=None),
 
 
 
26
  outputs="label",
27
  title="Language Identification",
28
  description="Identify the language of the spoken input"