anderbogia commited on
Commit
a6fde8f
·
1 Parent(s): c7348bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,7 +16,7 @@ import torch
16
  import librosa #For converting audio sample rate to 16k
17
  from easymms.models.tts import TTSModel #For TTS inference using EasyMMS
18
 
19
- LANG = "tih" #Change to tih for Timugon Murut or iba for Iban
20
  model_id = "facebook/mms-1b-all"
21
 
22
  processor = AutoProcessor.from_pretrained(model_id)
@@ -49,7 +49,7 @@ def transcribe(input): #Gradio UI wrapper function
49
  with gr.Blocks(theme = gr.themes.Soft()) as demo:
50
  gr.HTML(
51
  """
52
- <h1 align="center">Ponutun Tuturan om Pomorolou Sinuat Boros Dusun</h1>
53
  <h5 align="center"> Poomitanan kopogunaan do somit tutun tuturan om pomorolou sinuat (speech recognition and text-to-speech models)
54
  pinoluda' di Woyotanud Tuturan Gumukabang Tagayo di Meta (Meta Massive Multilingual Speech Project)</h5>
55
  <h6 align = "center">Guguno (app) diti winonsoi di Ander © 2023 id Universiti Teknologi PETRONAS</h6>
 
16
  import librosa #For converting audio sample rate to 16k
17
  from easymms.models.tts import TTSModel #For TTS inference using EasyMMS
18
 
19
+ LANG = "tih" #Change to tih for Timugon Murut or iba for Iban. Use any ISO language code.
20
  model_id = "facebook/mms-1b-all"
21
 
22
  processor = AutoProcessor.from_pretrained(model_id)
 
49
  with gr.Blocks(theme = gr.themes.Soft()) as demo:
50
  gr.HTML(
51
  """
52
+ <h1 align="center">Ponutun Tuturan om Pomorolou Sinuat Boros Murut (Ragu ru Murut)</h1>
53
  <h5 align="center"> Poomitanan kopogunaan do somit tutun tuturan om pomorolou sinuat (speech recognition and text-to-speech models)
54
  pinoluda' di Woyotanud Tuturan Gumukabang Tagayo di Meta (Meta Massive Multilingual Speech Project)</h5>
55
  <h6 align = "center">Guguno (app) diti winonsoi di Ander © 2023 id Universiti Teknologi PETRONAS</h6>