Spaces:
Sleeping
Sleeping
github-actions commited on
Commit Β·
d9d9ae6
1
Parent(s): 4084140
Auto deploy from GitHub Actions: 4aa44a5cb81686822558eeb4cc9b36904bbb7a4f
Browse files
README.md
CHANGED
|
@@ -1,47 +1,20 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
Set the backend API URL (optional). `BACKEND_URL` is checked first, then `API_BASE_URL`:
|
| 23 |
-
|
| 24 |
-
```bash
|
| 25 |
-
BACKEND_URL=http://localhost:8000 streamlit run app.py
|
| 26 |
-
```
|
| 27 |
-
|
| 28 |
-
Defaults to `http://localhost:8000` if not set.
|
| 29 |
-
|
| 30 |
-
## Features
|
| 31 |
-
|
| 32 |
-
- β¨ Single housing record prediction
|
| 33 |
-
- π Batch predictions with JSON input
|
| 34 |
-
- π Model reload capability
|
| 35 |
-
- π Summary statistics for batch results
|
| 36 |
-
- π§Ύ Model metadata display (name, alias, version)
|
| 37 |
-
- π¨ Clean, modern Streamlit UI
|
| 38 |
-
- β‘ Real-time API status checks
|
| 39 |
-
- π§ Session state management
|
| 40 |
-
|
| 41 |
-
## API Routes Used
|
| 42 |
-
|
| 43 |
-
- `GET /health` - Health check and model state
|
| 44 |
-
- `GET /model_info` - Loaded model metadata
|
| 45 |
-
- `POST /predict` - Single prediction
|
| 46 |
-
- `POST /predict_batch` - Batch predictions (`{"data": [HousingRecord, ...]}`)
|
| 47 |
-
- `POST /reload_model` - Reload MLflow model
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: HousingModel Server
|
| 3 |
+
emoji: π
|
| 4 |
+
colorFrom: red
|
| 5 |
+
colorTo: red
|
| 6 |
+
sdk: docker
|
| 7 |
+
app_port: 8501
|
| 8 |
+
tags:
|
| 9 |
+
- streamlit
|
| 10 |
+
pinned: false
|
| 11 |
+
short_description: Streamlit template space
|
| 12 |
+
license: mit
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# Welcome to Streamlit!
|
| 16 |
+
|
| 17 |
+
Edit `/src/streamlit_app.py` to customize this app to your heart's desire. :heart:
|
| 18 |
+
|
| 19 |
+
If you have any questions, checkout our [documentation](https://docs.streamlit.io) and [community
|
| 20 |
+
forums](https://discuss.streamlit.io).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|