Spaces:
Sleeping
Sleeping
Devin Xie
commited on
Commit
·
ab33db6
1
Parent(s):
6e383be
clarified text prompt constraints
Browse files
app.py
CHANGED
|
@@ -48,7 +48,7 @@ def main():
|
|
| 48 |
st.audio(speaker_file, format='audio/wav')
|
| 49 |
|
| 50 |
# Input text
|
| 51 |
-
text_input = st.text_area('What do you want your character to say?
|
| 52 |
|
| 53 |
if st.button('Synthesize'):
|
| 54 |
if text_input:
|
|
@@ -59,7 +59,7 @@ def main():
|
|
| 59 |
st.header('Synthesized Audio')
|
| 60 |
st.audio(output_path, format='audio/wav')
|
| 61 |
except:
|
| 62 |
-
st.error('There was an issue synthesizing the text. Please check the input and try again.
|
| 63 |
else:
|
| 64 |
st.error('Please provide a text input!')
|
| 65 |
|
|
|
|
| 48 |
st.audio(speaker_file, format='audio/wav')
|
| 49 |
|
| 50 |
# Input text
|
| 51 |
+
text_input = st.text_area('What do you want your character to say? Try to keep the prompt around 2 sentences.')
|
| 52 |
|
| 53 |
if st.button('Synthesize'):
|
| 54 |
if text_input:
|
|
|
|
| 59 |
st.header('Synthesized Audio')
|
| 60 |
st.audio(output_path, format='audio/wav')
|
| 61 |
except:
|
| 62 |
+
st.error('There was an issue synthesizing the text. Please check the input and try again. Try to keep the input around 2 sentences, and less than 200 characters.')
|
| 63 |
else:
|
| 64 |
st.error('Please provide a text input!')
|
| 65 |
|