Spaces:
Running
Running
Upload README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Flow Down Gradients — Simple Explorer
|
| 3 |
+
emoji: 🌬️
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 6 |
+
sdk: streamlit
|
| 7 |
+
app_file: app.py
|
| 8 |
+
pinned: false
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Flow Down Gradients — Simple Explorer
|
| 12 |
+
|
| 13 |
+
## Pressure (Alveolus ↔ Capillary)
|
| 14 |
+
- Choose a **preset**: Demo, Preset 1–3 (values in **mmHg**, including **Thoracic pressure**).
|
| 15 |
+
- Diagram shows **O₂ (Blue • Circle)** and **CO₂ (Orange • Square)** with labels **Alveolus** and **Capillary**.
|
| 16 |
+
- Clean, accessible legend (color + shape cues).
|
| 17 |
+
|
| 18 |
+
## Concentration: Action Potential (extracellular ↔ intracellular)
|
| 19 |
+
- Choose **Preset 1–3** (more **Na⁺**, more **K⁺**, and **which side is more negative**).
|
| 20 |
+
- Labels: **Extracellular** ↔ **Intracellular** with **+/−** signs above the labels.
|
| 21 |
+
- Static visual (no animation) to pair with Canvas prompts.
|
| 22 |
+
|
| 23 |
+
## Run locally
|
| 24 |
+
```bash
|
| 25 |
+
pip install streamlit numpy matplotlib
|
| 26 |
+
streamlit run app.py
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
## Deploy on Hugging Face Spaces (Streamlit)
|
| 30 |
+
Upload **`app.py`**, **`requirements.txt`**, and this **`README.md`** to a Streamlit Space.
|