herwoww commited on
Commit
ea38bcc
โ€ข
1 Parent(s): 0c28d14
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -55,9 +55,16 @@ def inference(text, spkr=emb_path):
55
 
56
  text_box = gr.Textbox(max_lines=2, label="Arabic Text", rtl=True)
57
  out = gr.Audio(label="Synthesized Audio", type="numpy")
58
- title="<div style='text-align: center;'><h1>ArTST: Arabic Text and Speech Transformer</h1> Demo for TTS</div>"
 
 
 
 
 
 
 
59
  demo = gr.Interface(inference, \
60
- inputs=text_box, outputs=out, title=title)
61
 
62
  if __name__ == "__main__":
63
  demo.launch(share=True)
 
55
 
56
  text_box = gr.Textbox(max_lines=2, label="Arabic Text", rtl=True)
57
  out = gr.Audio(label="Synthesized Audio", type="numpy")
58
+ title="ArTST: Arabic Speech Synthesis"
59
+ description="ArTST: Arabic text and speech transformer based on the T5 transformer. This space demonstarates the TTS checkpoint finetuned on \
60
+ the CLARTTS dataset. The model is pre-trained on the MGB-2 dataset.Check the <a href='https://github.com/mbzuai-nlp/ArTST'> ArTST repo</a> for implementation code and \
61
+ Read our <a href='https://arxiv.org/abs/2310.16621'>paper</a> for more details."
62
+ examples=["ู„ุฃู† ูุฑุงู‚ ุงู„ู…ุฃู„ูˆู ููŠ ุงู„ุนุงุฏุฉ ูˆู…ุฌุงู†ุจุฉ ู…ุง ุตุงุฑ ู…ุชูู‚ุง ุนู„ูŠู‡ ุจุงู„ู…ูˆุงุถุนุฉ",\
63
+ "ูˆู…ู† ู„ุทูŠู ุญูƒู…ุชู‡ ุฃู† ุฌุนู„ ู„ูƒู„ ุนุจุงุฏุฉ ุญุงู„ุชูŠู†",\
64
+ "ูู…ู† ู„ู‡ู… ุนุฏู„ ุงู„ุฅู†ุณุงู† ู…ุน ู…ู† ููˆู‚ู‡"]
65
+
66
  demo = gr.Interface(inference, \
67
+ inputs=text_box, outputs=out, title=title, description=description, examples=examples)
68
 
69
  if __name__ == "__main__":
70
  demo.launch(share=True)