Skip to content

Commit

Permalink
revise formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
xtzhang1122 committed Sep 3, 2024
1 parent cd69624 commit 0e1635c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/routes/test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from typing import List, AsyncGenerator
from fastapi import APIRouter
from pydantic import BaseModel
import uuid, asyncio
import uuid
import asyncio
from fastapi.responses import StreamingResponse
import re

Expand Down Expand Up @@ -35,7 +36,6 @@ class RequestConversation(BaseModel):


def normalize_question(question: str) -> str:
# Convert to lowercase and strip punctuation
question = question.rstrip()
return re.sub(r'[^\w\s]', '', question.lower())

Expand Down

0 comments on commit 0e1635c

Please sign in to comment.