Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
binxuan39 committed Sep 2, 2024
1 parent 6f2add5 commit 8be222a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ async def evaluate(auth_claims: dict[str, Any]):

input_data_file = request_files.get("input_data")
num_questions_str = request_form.get("num_questions", "")
num_questions = None if num_questions_str == "" else int(num_questions_str)
num_questions = 0 if num_questions_str == "" else int(num_questions_str)
config = json.loads(request_form.get("config", "{}"))

if input_data_file is not None:
Expand Down

0 comments on commit 8be222a

Please sign in to comment.