Spaces:
Running
Running
YanBoChen
commited on
Commit
·
b497e77
1
Parent(s):
7620d26
Add anaphylaxis condition mapping to keyword configuration
Browse files- src/medical_conditions.py +4 -0
- united_requirements.txt +113 -0
src/medical_conditions.py
CHANGED
|
@@ -71,6 +71,10 @@ CONDITION_KEYWORD_MAPPING: Dict[str, Dict[str, str]] = {
|
|
| 71 |
"bacterial meningitis": {
|
| 72 |
"emergency": "bacterial meningitis|fever|headache|neck stiffness|altered mental status|meningitis|meningeal signs",
|
| 73 |
"treatment": "empiric antibiotics|ceftriaxone|vancomycin|dexamethasone|lumbar puncture"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
}
|
| 75 |
}
|
| 76 |
|
|
|
|
| 71 |
"bacterial meningitis": {
|
| 72 |
"emergency": "bacterial meningitis|fever|headache|neck stiffness|altered mental status|meningitis|meningeal signs",
|
| 73 |
"treatment": "empiric antibiotics|ceftriaxone|vancomycin|dexamethasone|lumbar puncture"
|
| 74 |
+
},
|
| 75 |
+
"anaphylaxis": {
|
| 76 |
+
"emergency": "anaphylaxis|allergic reaction|airway compromise|hypotension",
|
| 77 |
+
"treatment": "epinephrine|adrenaline|IV fluids|antihistamine|corticosteroids"
|
| 78 |
}
|
| 79 |
}
|
| 80 |
|
united_requirements.txt
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# OnCall.ai Conflict-Free Requirements
|
| 2 |
+
# Resolved all dependency conflicts with conservative version choices
|
| 3 |
+
# Install with: pip install -r requirements-conflict-free.txt
|
| 4 |
+
|
| 5 |
+
# === Core Web Framework ===
|
| 6 |
+
fastapi==0.116.1
|
| 7 |
+
uvicorn==0.35.0
|
| 8 |
+
starlette==0.47.2
|
| 9 |
+
h11==0.16.0
|
| 10 |
+
websockets==15.0.1
|
| 11 |
+
|
| 12 |
+
# === Machine Learning & NLP (Conservative Versions) ===
|
| 13 |
+
sentence-transformers==3.0.1 # Use stable version to avoid conflicts
|
| 14 |
+
transformers==4.53.2
|
| 15 |
+
tokenizers==0.21.2
|
| 16 |
+
torch==2.7.1
|
| 17 |
+
numpy==2.2.6 # Compatible with all dependencies
|
| 18 |
+
pandas==2.2.3 # Safe version for llama-index compatibility
|
| 19 |
+
scipy==1.16.0 # Conservative version
|
| 20 |
+
scikit-learn==1.7.1
|
| 21 |
+
safetensors==0.5.3
|
| 22 |
+
|
| 23 |
+
# === Document Processing (No Fitz) ===
|
| 24 |
+
pdfplumber==0.11.7
|
| 25 |
+
PyMuPDF==1.26.3
|
| 26 |
+
pypdf==5.8.0
|
| 27 |
+
beautifulsoup4==4.13.4
|
| 28 |
+
lxml==6.0.0
|
| 29 |
+
|
| 30 |
+
# === Essential LLaMA Index (Minimal Set) ===
|
| 31 |
+
llama-index-core==0.12.50
|
| 32 |
+
llama-index-embeddings-huggingface==0.5.5
|
| 33 |
+
llama-index-llms-huggingface==0.5.0
|
| 34 |
+
|
| 35 |
+
# === Vector Search & Embeddings ===
|
| 36 |
+
annoy==1.17.3
|
| 37 |
+
fsspec==2023.12.2 # Conservative version compatible with datasets
|
| 38 |
+
huggingface-hub==0.33.5 # Compatible with gradio
|
| 39 |
+
datasets==4.0.0
|
| 40 |
+
|
| 41 |
+
# === Gradio UI ===
|
| 42 |
+
gradio==5.38.0
|
| 43 |
+
gradio_client==1.11.0
|
| 44 |
+
|
| 45 |
+
# === HTTP & API ===
|
| 46 |
+
aiohttp==3.12.14
|
| 47 |
+
aiosignal==1.4.0
|
| 48 |
+
aiohappyeyeballs==2.6.1
|
| 49 |
+
httpx==0.28.1
|
| 50 |
+
httpcore==1.0.9
|
| 51 |
+
requests==2.32.4
|
| 52 |
+
urllib3==2.5.0
|
| 53 |
+
certifi==2025.7.14
|
| 54 |
+
idna==3.10
|
| 55 |
+
charset-normalizer==3.4.2
|
| 56 |
+
|
| 57 |
+
# === OpenAI Integration ===
|
| 58 |
+
openai==1.97.0
|
| 59 |
+
|
| 60 |
+
# === Core Python Utilities ===
|
| 61 |
+
python-dotenv==1.1.1
|
| 62 |
+
pydantic==2.11.7
|
| 63 |
+
pydantic_core==2.33.2
|
| 64 |
+
PyYAML==6.0.2
|
| 65 |
+
click==8.2.1
|
| 66 |
+
tqdm==4.67.1
|
| 67 |
+
|
| 68 |
+
# === Data Visualization ===
|
| 69 |
+
matplotlib==3.10.3
|
| 70 |
+
seaborn==0.13.2
|
| 71 |
+
pillow==11.3.0
|
| 72 |
+
|
| 73 |
+
# === Development Tools ===
|
| 74 |
+
ruff==0.12.4
|
| 75 |
+
rich==14.0.0
|
| 76 |
+
|
| 77 |
+
# === Async Support ===
|
| 78 |
+
anyio==4.9.0
|
| 79 |
+
aiofiles==24.1.0
|
| 80 |
+
sniffio==1.3.1
|
| 81 |
+
|
| 82 |
+
# === Text Processing ===
|
| 83 |
+
regex==2024.11.6
|
| 84 |
+
Pygments==2.19.2
|
| 85 |
+
pyparsing==3.2.3
|
| 86 |
+
Jinja2==3.1.6
|
| 87 |
+
MarkupSafe==3.0.2
|
| 88 |
+
|
| 89 |
+
# === Date & Time ===
|
| 90 |
+
python-dateutil==2.9.0.post0
|
| 91 |
+
pytz==2025.2
|
| 92 |
+
tzdata==2025.2
|
| 93 |
+
|
| 94 |
+
# === System Utilities ===
|
| 95 |
+
filelock==3.18.0
|
| 96 |
+
packaging==25.0
|
| 97 |
+
six==1.17.0
|
| 98 |
+
typing_extensions==4.14.1
|
| 99 |
+
joblib==1.5.1
|
| 100 |
+
threadpoolctl==3.6.0
|
| 101 |
+
|
| 102 |
+
# === Additional Core Dependencies ===
|
| 103 |
+
attrs==25.3.0
|
| 104 |
+
frozenlist==1.7.0
|
| 105 |
+
multidict==6.6.3
|
| 106 |
+
yarl==1.20.1
|
| 107 |
+
propcache==0.3.2
|
| 108 |
+
dill==0.3.8
|
| 109 |
+
networkx==3.5
|
| 110 |
+
sympy==1.14.0
|
| 111 |
+
mpmath==1.3.0
|
| 112 |
+
distro==1.9.0
|
| 113 |
+
jiter==0.10.0
|