Skip to content

Commit

Permalink
Merge pull request #18 from hangeulbada/dev
Browse files Browse the repository at this point in the history
feat: 범위제한
  • Loading branch information
ssoxong authored Nov 27, 2024
2 parents 6ab9bcd + 7ae1553 commit cc5f234
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion crud/pronounce.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,6 @@ def geosensori_analysis(text, dec):
if r[2] in trigger and dec[i+1][0] in geosensorilist:
geosensori.append(text[i:i+2])

return geosensori
return geosensori


4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ class PronounceRule(str, Enum):
기식음화 = "기식음화"

class ClaudeRequest(BaseModel):
difficulty: int = Field(default=3)
difficulty: int = Field(default=3, ge=1, le=5)
rule: PronounceRule
count: int = Field(default=5)
count: int = Field(default=5, ge=1, le=20)

@app.post("/phonological_rules")
async def analysis_pronounce(text: Dict[int, str] = Body(
Expand Down

0 comments on commit cc5f234

Please sign in to comment.