Nyanpre commited on
Commit
8ef0c58
·
verified ·
1 Parent(s): 572efc1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -59,7 +59,7 @@ def analyze_and_output(my_id, my_pw, target_id, freq_type, progress=gr.Progress(
59
  clean_text = re.sub(r'[!\?!?。\n\s]+$', '', text)
60
  if len(clean_text) >= 2:
61
  # 文末2〜3文字を抽出(ひらがな中心にヒットしやすく調整)
62
- ending = clean_text[-2:]
63
  if re.search(r'[ぁ-んーwWwW]$', ending):
64
  ends_list.append(ending)
65
 
 
59
  clean_text = re.sub(r'[!\?!?。\n\s]+$', '', text)
60
  if len(clean_text) >= 2:
61
  # 文末2〜3文字を抽出(ひらがな中心にヒットしやすく調整)
62
+ ending = clean_text[-3:]
63
  if re.search(r'[ぁ-んーwWwW]$', ending):
64
  ends_list.append(ending)
65