Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -0
src/streamlit_app.py
CHANGED
|
@@ -37,6 +37,8 @@ def display_status_and_action(text):
|
|
| 37 |
st.markdown(text_input)
|
| 38 |
if st.button("🎤 음성 생성 및 재생"):
|
| 39 |
# gTTS로 mp3 생성
|
|
|
|
|
|
|
| 40 |
tts = gTTS(text=text_input, lang='ko')
|
| 41 |
|
| 42 |
# 메모리에 저장
|
|
|
|
| 37 |
st.markdown(text_input)
|
| 38 |
if st.button("🎤 음성 생성 및 재생"):
|
| 39 |
# gTTS로 mp3 생성
|
| 40 |
+
text_input = cleaned_text = re.sub(r'[\x00-\x1F]+', '', text_input)
|
| 41 |
+
text_input = text_input.replace("*", "")
|
| 42 |
tts = gTTS(text=text_input, lang='ko')
|
| 43 |
|
| 44 |
# 메모리에 저장
|