Update app.py
Browse files
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[-
|
| 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 |
|