Text Generation
LiteRT
LiteRT
English
android-wear
wearos
cardiac-disease
medgemma
mobile-ai
ios-coreml
android-litert
conformer
micro-model
multimodal
cardiology
biosignal
ppg
Instructions to use litert-community/Cardiac_micro_model_Android_Wear with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT
How to use litert-community/Cardiac_micro_model_Android_Wear with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
feat(portfolio): unify Llama-3.2-1B and Qwen2.5-0.5B models with dynamic switching and updated docs
51d622b Download run_interface.py from litert-community/Cardiac_micro_model_Android_Wear: direct link, hf CLI and curl.
- Browser
- Download file 1.02 kB
-
https://huggingface.co/litert-community/Cardiac_micro_model_Android_Wear/resolve/main/run_interface.py
- Command line
-
hf download hf://litert-community/Cardiac_micro_model_Android_Wear/run_interface.py
-
curl -L -o run_interface.py https://huggingface.co/litert-community/Cardiac_micro_model_Android_Wear/resolve/main/run_interface.py
1.02 kB
| #!/usr/bin/env python3 | |
| """ | |
| Launcher for MedGemma-Micro Interactive Test & Chat Interface | |
| ============================================================ | |
| Boots FastAPI / Uvicorn server and provides terminal access link. | |
| """ | |
| import os | |
| import sys | |
| # Auto-delegate to .venv/bin/python if running outside virtual environment | |
| venv_python = os.path.abspath(os.path.join(os.path.dirname(__file__), ".venv", "bin", "python")) | |
| if os.path.exists(venv_python) and os.path.realpath(sys.executable) != os.path.realpath(venv_python): | |
| os.execv(venv_python, [venv_python] + sys.argv) | |
| import uvicorn | |
| if __name__ == "__main__": | |
| port = int(os.environ.get("PORT", 8000)) | |
| host = os.environ.get("HOST", "127.0.0.1") | |
| print("=" * 65) | |
| print(f"Starting MedGemma-Micro Interactive Test Interface") | |
| print(f"Model: medgemma_micro_cardio_edge.safetensors (Llama-3.2-1B Multimodal Edge)") | |
| print(f"URL: http://{host}:{port}") | |
| print("=" * 65) | |
| uvicorn.run("app:app", host=host, port=port, log_level="info", reload=False) | |