GuGai commited on
Commit
626e3c7
·
1 Parent(s): 30764ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,7 +3,7 @@ from transformers import pipeline
3
 
4
  classifier = pipeline("text-to-speech", model="GuGai/text_to_speech_G")
5
  def main():
6
- st.title("Yelp review")
7
 
8
  with st.form("text_field"):
9
  text = st.text_area('enter some text:')
@@ -11,7 +11,7 @@ def main():
11
  clicked = st.form_submit_button("Submit text")
12
  if clicked:
13
  results = classifier([text])
14
- st.json(results)
15
 
16
  if __name__ == "__main__":
17
  main()
 
3
 
4
  classifier = pipeline("text-to-speech", model="GuGai/text_to_speech_G")
5
  def main():
6
+ st.title("Text to Speech")
7
 
8
  with st.form("text_field"):
9
  text = st.text_area('enter some text:')
 
11
  clicked = st.form_submit_button("Submit text")
12
  if clicked:
13
  results = classifier([text])
14
+ st.audio(results)
15
 
16
  if __name__ == "__main__":
17
  main()