Spaces:
Sleeping
Sleeping
|
Download CONTRIBUTING.md from bnewcomer/MediBot: direct link, hf CLI and curl.
- Browser
- Download file 1.59 kB
-
https://huggingface.co/spaces/bnewcomer/MediBot/resolve/main/CONTRIBUTING.md
- Command line
-
hf download hf://spaces/bnewcomer/MediBot/CONTRIBUTING.md
-
curl -L -o CONTRIBUTING.md https://huggingface.co/spaces/bnewcomer/MediBot/resolve/main/CONTRIBUTING.md
1.59 kB
A newer version of the Gradio SDK is available: 6.32.0
Contributing to MediBot
Thanks for helping improve MediBot.
Development Setup
- Clone the repository.
- Create and activate a virtual environment.
- Install runtime dependencies from
requirements.txt. - Install development dependencies from
requirements-dev.txt. - Set
OPENAI_API_KEYin your environment or a local.envfile.
Example:
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
pip install -r requirements-dev.txt
Optional helper commands are available in MakeFile.mak.
Before Opening a PR
Run the lightweight checks:
python scripts/smoke_check.py
python scripts/evaluate_real_queries.py
Run tests:
.venv\Scripts\python.exe -m pytest tests -q
Or use:
make -f MakeFile.mak smoke-check
make -f MakeFile.mak eval
make -f MakeFile.mak test
Project Areas
app.py: routing, session state, response formatting, Gradio UIdiagnosis_engine/: retrieval, scoring, prevalence priors, reranking, symptom mappingdata/: symptom, severity, description, and precaution datasetseval/: deterministic real-query evaluation casestests/: pytest coverage
Contribution Guidelines
- keep changes aligned with the app's educational, non-diagnostic scope
- preserve emergency escalation behavior for red-flag symptoms
- prefer adding or updating tests when changing routing, symptom mapping, or scoring
- document user-facing behavior changes in the relevant markdown notes when needed
License
MediBot is released under the MIT License. See LICENSE.