unijoh commited on
Commit
f8b8c99
·
verified ·
1 Parent(s): 0083046

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -19
app.py CHANGED
@@ -1,17 +1,7 @@
1
  import gradio as gr
2
- from asr import transcribe
3
  from tts import synthesize_speech
4
- from lid import identify_language
5
 
6
  def main():
7
- asr_interface = gr.Interface(
8
- fn=transcribe,
9
- inputs=gr.Audio(type="filepath"),
10
- outputs="text",
11
- title="Faroese ASR Demo",
12
- description="Automatic Speech Recognition for Faroese"
13
- )
14
-
15
  tts_interface = gr.Interface(
16
  fn=synthesize_speech,
17
  inputs="text",
@@ -20,15 +10,7 @@ def main():
20
  description="Text-to-Speech Synthesis for Faroese"
21
  )
22
 
23
- lid_interface = gr.Interface(
24
- fn=identify_language,
25
- inputs=gr.Audio(type="filepath"),
26
- outputs="label",
27
- title="Language Identification",
28
- description="Identify the language of the spoken input"
29
- )
30
-
31
- demo = gr.TabbedInterface([asr_interface, tts_interface, lid_interface], ["ASR", "TTS", "LID"])
32
  demo.launch()
33
 
34
  if __name__ == "__main__":
 
1
  import gradio as gr
 
2
  from tts import synthesize_speech
 
3
 
4
  def main():
 
 
 
 
 
 
 
 
5
  tts_interface = gr.Interface(
6
  fn=synthesize_speech,
7
  inputs="text",
 
10
  description="Text-to-Speech Synthesis for Faroese"
11
  )
12
 
13
+ demo = gr.TabbedInterface([tts_interface], ["TTS"])
 
 
 
 
 
 
 
 
14
  demo.launch()
15
 
16
  if __name__ == "__main__":