herwoww commited on
Commit
0c28d14
1 Parent(s): 4e8e8e3
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -53,10 +53,11 @@ def inference(text, spkr=emb_path):
53
  gen_audio = vocoder(outs.to(device))
54
  return (16000,gen_audio.cpu().numpy())
55
 
56
- text_box = gr.Textbox(max_lines=2, label="Arabic Text")
57
  out = gr.Audio(label="Synthesized Audio", type="numpy")
 
58
  demo = gr.Interface(inference, \
59
- inputs=text_box, outputs=out, title="ArTST")
60
 
61
  if __name__ == "__main__":
62
  demo.launch(share=True)
 
53
  gen_audio = vocoder(outs.to(device))
54
  return (16000,gen_audio.cpu().numpy())
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)