seawolf2357 commited on
Commit
222374c
โ€ข
1 Parent(s): db8a9eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("์—์Šค")].strip()
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')