Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,7 @@ def accent_phrases(
"""
if is_kana:
try:
accent_phrases, interrogative_accent_phrase_marks = parse_kana(
text, enable_interrogative
)
accent_phrases = parse_kana(text, enable_interrogative)
except ParseKanaError as err:
raise HTTPException(
status_code=400,
Expand All @@ -213,8 +211,6 @@ def accent_phrases(
for accent_phrase in (
adjust_interrogative_accent_phrases(
accent_phrases,
interrogative_accent_phrase_marks,
enable_interrogative,
)
)
]
Expand Down
1 change: 1 addition & 0 deletions test/test_fastapi_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def _accent_phrase(self):
moras=self._moras(),
accent=3,
pause_mora=None,
is_interrogative=False,
)

def _fastapi_accent_phrase(self):
Expand Down
Loading