An advanced AI-powered medical image analysis application that assists healthcare professionals in analyzing medical imagery using state-of-the-art computer vision models.
VitalImage Analytics is a cutting-edge Streamlit application that leverages Together AI's powerful Llama Vision models to provide detailed analysis of medical images. The application is designed to support healthcare professionals by offering AI-powered insights into X-rays, CT scans, MRIs, and other medical imaging formats.
- π Advanced Medical Image Analysis - Powered by Together AI's Llama Vision models
- π©» Multi-Format Support - X-rays, CT scans, MRI, ultrasound, and more
- π Comprehensive Reports - Detailed findings, recommendations, and next steps
β οΈ Safety First - Built-in medical disclaimers and safety warnings- π Easy to Use - Intuitive drag-and-drop interface
- π Secure - API key management and data protection
- Python 3.8 or higher
- Together AI API key (Get yours here)
- Required Python packages (see requirements below)
-
Clone the repository
git clone https://github.com/yourusername/vitalimage-analytics.git cd vitalimage-analytics
-
Install dependencies
pip install -r requirements.txt
-
Set up your API key
Create a file named
api_key.py
in the project root:# api_key.py api_key = "your_together_ai_api_key_here"
-
Run the application
streamlit run main_app.py
-
Open your browser
Navigate to
http://localhost:8501
to access the application.
Create a requirements.txt
file with the following dependencies:
streamlit>=1.28.0
requests>=2.31.0
Pillow>=10.0.0
pathlib
Install all requirements:
pip install -r requirements.txt
- Sign up for Together AI at api.together.xyz
- Generate your API key from the dashboard
- Create
api_key.py
file:# api_key.py api_key = "sk-your-actual-api-key-here"
The application uses Together AI's vision models:
- Default:
meta-llama/Llama-Vision-Free
(Free tier) - Premium:
meta-llama/Llama-3.2-11B-Vision-Instruct-Turbo
(Paid tier)
To change the model, modify the MODEL_NAME
variable in main_app.py
:
MODEL_NAME = "meta-llama/Llama-3.2-11B-Vision-Instruct-Turbo" # For better performance
- X-rays (Chest, Bone, Dental)
- CT Scans (Brain, Chest, Abdomen)
- MRI Images (Brain, Spine, Joints)
- Ultrasound (Abdominal, Cardiac)
- Other medical imaging formats
- JPEG (.jpg, .jpeg)
- PNG (.png)
- Maximum file size: 10MB (recommended)
-
π€ File Upload
- Drag and drop medical images
- Support for multiple formats
- Image preview before analysis
-
π Analysis Engine
- AI-powered medical image analysis
- Detailed findings report
- Confidence levels and recommendations
-
π Results Display
- Expandable analysis sections
- Professional medical terminology
- Downloadable reports
-
π± Responsive Design
- Mobile-friendly interface
- Professional medical theme
- Intuitive navigation
CRITICAL: This application is designed for educational and supportive purposes only. It is NOT intended to replace professional medical diagnosis, treatment, or advice. Always consult with qualified healthcare professionals for medical decisions.
- AI analysis should supplement, not replace, professional medical expertise
- Results may vary based on image quality and complexity
- Not approved for primary diagnostic use
- Requires medical professional validation
vitalimage-analytics/
βββ main_app.py # Main Streamlit application
βββ api_key.py # API key configuration
βββ requirements.txt # Python dependencies
βββ README.md # Project documentation
βββ LICENSE # License file
βββ .gitignore # Git ignore rules
βββ assets/ # Images and resources
βββ logo.png
βββ screenshots/
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
- RAM: Minimum 4GB, Recommended 8GB+
- Storage: 1GB free space
- Network: Stable internet connection for API calls
- Browser: Modern web browser (Chrome, Firefox, Safari)
- Rate Limits: Follow Together AI's rate limiting guidelines
- Cost Management: Monitor API usage through Together AI dashboard
- Optimization: Image compression recommended for faster processing
- Images are processed via secure API calls
- No local storage of medical images
- API keys stored locally only
- HIPAA compliance considerations for production use
# Use environment variables for production
import os
api_key = os.getenv('TOGETHER_AI_API_KEY')
- Together AI Platform - Get your API key
- Streamlit Cloud - Deploy your app
- Medical Image Datasets - Test data
API Key Errors
Error: Invalid API key
Solution: Check your api_key.py file and ensure the key is correct
Image Upload Issues
Error: Unsupported file format
Solution: Use JPEG or PNG formats only, max 10MB
Model Loading Errors
Error: Model not found
Solution: Check if the model name is correct in MODEL_NAME variable
- π§ Create an issue on GitHub
- π¬ Check Discussions
- π Read the Wiki
This project is licensed under the MIT License - see the LICENSE file for details.
- Together AI for providing powerful vision models
- Streamlit for the amazing web framework
- Medical community for inspiration and requirements
- Open source contributors for various libraries used
Made with β€οΈ for the healthcare community