Skip to content
Merged
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
4 changes: 2 additions & 2 deletions sandbox/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ def get_prism_prompt_for_example(patient_examples: dict, request: Request) -> st
for patient_id, example in sorted_examples:
if patient_id in request.full_path:
return example
if request.full_path.find("patient-check/") > -1:
return "example_" + request.full_path[request.full_path.find("patient-check/")+14:]
if request.full_path.find("patient-check/") > -1:
return ("example_" + request.full_path[request.full_path.find("patient-check/")+14:]).rstrip("?")
return None


Expand Down
Loading