Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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("
|
| 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.
|
| 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()
|