Spaces:
unijoh
/
Runtime error

unijoh commited on
Commit
ed3244e
1 Parent(s): 97fe1f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -28,14 +28,14 @@ mms_transcribe = gr.Interface(
28
  mms_upload_source_trans,
29
  gr.Dropdown(
30
  [f"{k} ({v})" for k, v in ASR_LANGUAGES.items()],
31
- label="Language",
32
  value="fao (Faroese)",
33
  ),
34
  # gr.Checkbox(label="Use Language Model (if available)", default=True),
35
  ],
36
  outputs="text",
37
  examples=ASR_EXAMPLES,
38
- title="Speech-to-text",
39
  description=(
40
  "Transcribe audio from a microphone or input file in your desired language."
41
  ),
@@ -49,26 +49,26 @@ TTS_LANGUAGES = {'fao': 'Faroese'}
49
  mms_synthesize = gr.Interface(
50
  fn=synthesize,
51
  inputs=[
52
- gr.Text(label="Input Text"),
53
  gr.Dropdown(
54
  [f"{k} ({v})" for k, v in TTS_LANGUAGES.items()],
55
- label="Language",
56
  value="fao (Faroese)",
57
  ),
58
  gr.Slider(minimum=0.1, maximum=4.0, value=1.0, step=0.1, label="Speed"),
59
  ],
60
  outputs=[
61
- gr.Audio(label="Generated Audio", type="numpy"),
62
  gr.Text(label="Filtered text after removing OOVs"),
63
  ],
64
  examples=TTS_EXAMPLES,
65
- title="Text-to-speech",
66
  description=("Generate audio in your desired language from input text."),
67
  allow_flagging="never",
68
  )
69
 
70
  mms_select_source_iden = gr.Radio(
71
- ["Record from Mic", "Upload audio"],
72
  label="Audio input",
73
  value="Record from Mic",
74
  )
@@ -85,14 +85,14 @@ mms_identify = gr.Interface(
85
  ],
86
  outputs=gr.Label(num_top_classes=10),
87
  examples=LID_EXAMPLES,
88
- title="Language Identification",
89
  description=("Identity the language of input audio."),
90
  allow_flagging="never",
91
  )
92
 
93
  tabbed_interface = gr.TabbedInterface(
94
  [mms_transcribe, mms_synthesize, mms_identify],
95
- ["Speech-to-text", "Text-to-speech", "Language Identification"],
96
  )
97
 
98
  with gr.Blocks() as demo:
 
28
  mms_upload_source_trans,
29
  gr.Dropdown(
30
  [f"{k} ({v})" for k, v in ASR_LANGUAGES.items()],
31
+ label="Mál",
32
  value="fao (Faroese)",
33
  ),
34
  # gr.Checkbox(label="Use Language Model (if available)", default=True),
35
  ],
36
  outputs="text",
37
  examples=ASR_EXAMPLES,
38
+ title="Talukennari",
39
  description=(
40
  "Transcribe audio from a microphone or input file in your desired language."
41
  ),
 
49
  mms_synthesize = gr.Interface(
50
  fn=synthesize,
51
  inputs=[
52
+ gr.Text(label="Tekstur at lesa upp"),
53
  gr.Dropdown(
54
  [f"{k} ({v})" for k, v in TTS_LANGUAGES.items()],
55
+ label="Mál",
56
  value="fao (Faroese)",
57
  ),
58
  gr.Slider(minimum=0.1, maximum=4.0, value=1.0, step=0.1, label="Speed"),
59
  ],
60
  outputs=[
61
+ gr.Audio(label="Ljóð frá teldutaluni", type="numpy"),
62
  gr.Text(label="Filtered text after removing OOVs"),
63
  ],
64
  examples=TTS_EXAMPLES,
65
+ title="Teldutala",
66
  description=("Generate audio in your desired language from input text."),
67
  allow_flagging="never",
68
  )
69
 
70
  mms_select_source_iden = gr.Radio(
71
+ ["Tak upp frá mikrofonini", "Vel ljóðfílu"],
72
  label="Audio input",
73
  value="Record from Mic",
74
  )
 
85
  ],
86
  outputs=gr.Label(num_top_classes=10),
87
  examples=LID_EXAMPLES,
88
+ title="Máleyðmerkjari",
89
  description=("Identity the language of input audio."),
90
  allow_flagging="never",
91
  )
92
 
93
  tabbed_interface = gr.TabbedInterface(
94
  [mms_transcribe, mms_synthesize, mms_identify],
95
+ ["Talukennari", "Teldutala", "Máleyðmerkjari"],
96
  )
97
 
98
  with gr.Blocks() as demo: