Spaces:
Sleeping
Sleeping
Commit
โข
222374c
1
Parent(s):
db8a9eb
Update app.py
Browse files
app.py
CHANGED
@@ -28,8 +28,8 @@ async def generate(prompt):
|
|
28 |
output += response.token.text
|
29 |
|
30 |
# "์์ค" ๋ฌธ์์ด์ด ๋ง์ง๋ง์ ์์ผ๋ฉด ์ ๊ฑฐ
|
31 |
-
if output.strip().endswith("
|
32 |
-
output = output[:output.rfind("
|
33 |
|
34 |
# ์ค๋์ค ํ์ผ ์์ฑ
|
35 |
tts = gTTS(text=output, lang='ko')
|
|
|
28 |
output += response.token.text
|
29 |
|
30 |
# "์์ค" ๋ฌธ์์ด์ด ๋ง์ง๋ง์ ์์ผ๋ฉด ์ ๊ฑฐ
|
31 |
+
if output.strip().endswith("s"):
|
32 |
+
output = output[:output.rfind("s")].strip()
|
33 |
|
34 |
# ์ค๋์ค ํ์ผ ์์ฑ
|
35 |
tts = gTTS(text=output, lang='ko')
|