Spaces:
Running
Running
Case Zero - initial public release (fully local: Qwen2.5-1.5B via llama.cpp + Supertonic, custom pixel-noir SPA via gradio.Server)
414dc55 Download src/case_zero/api/questions.py from build-small-hackathon/case0: direct link, hf CLI and curl.
- Browser
- Download file 686 Bytes
-
https://huggingface.co/spaces/build-small-hackathon/case0/resolve/main/src/case_zero/api/questions.py
- Command line
-
hf download hf://spaces/build-small-hackathon/case0/src/case_zero/api/questions.py
-
curl -L -o questions.py https://huggingface.co/spaces/build-small-hackathon/case0/resolve/main/src/case_zero/api/questions.py
686 Bytes
| """Generic suggested questions for generated cases. Their *answers* are produced live by | |
| the interrogation engine, so the same set works for any case; only the text is public. | |
| The golden case ships its own authored questions instead. | |
| """ | |
| from __future__ import annotations | |
| FIXED_QUESTIONS: tuple[tuple[str, str], ...] = ( | |
| ("q0", "Where were you when it happened?"), | |
| ("q1", "What was your relationship with the victim?"), | |
| ("q2", "Did you see anyone near the scene?"), | |
| ("q3", "Is there anything you haven't told me?"), | |
| ("q4", "Walk me through your evening."), | |
| ) | |
| _BY_ID = dict(FIXED_QUESTIONS) | |
| def question_text(qid: str) -> str | None: | |
| return _BY_ID.get(qid) | |