Skip to content

Commit 5e51fc8

Browse files
committed
Update frontend
1 parent 00c3cb7 commit 5e51fc8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/app/frontend.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ def make_prediction(payload: Dict[str, Any]) -> str:
3030
def ask_question(question: str) -> str:
3131
"""Helper to call RAG endpoint"""
3232
try:
33-
response = requests.post(
34-
response=requests.post(f"{FASTAPI_URL}/ask", json={"question": question})
35-
)
33+
response = requests.post(f"{FASTAPI_URL}/ask", json={"question": question})
3634

3735
if response.status_code == 200:
3836
return response.json()["answer"]

0 commit comments

Comments
 (0)