A comprehensive medical analysis platform for hemoglobinopathy detection that leverages advanced technologies for patient care and medical insights.
- PDF/Image Analysis: Extract medical data from documents
- LLM-Powered Analysis: Advanced analysis using GPT-4o
- RAG-based Chatbot: Intelligent medical information assistant
- WhatsApp Integration: Patient communication system
- Interactive Visualizations: Medical history tracking and analysis
- Multi-format Export: CSV, JSON, and HTML report generation
- Fork this repository to your Replit account
- Set up the following secrets in your Replit environment:
OPENAI_API_KEY: Your OpenAI API keyTWILIO_ACCOUNT_SID: Your Twilio account SIDTWILIO_AUTH_TOKEN: Your Twilio auth tokenTWILIO_PHONE_NUMBER: Your Twilio WhatsApp number
- Click the "Deploy" button in your Replit workspace
-
Install Azure CLI and login:
az login
-
Create Azure Container Registry:
az acr create --name <registry-name> --resource-group <resource-group> --sku Basic az acr login --name <registry-name>
-
Build and push the Docker image:
docker build -t hemoglobinopathy-analysis . docker tag hemoglobinopathy-analysis <registry-name>.azurecr.io/hemoglobinopathy-analysis docker push <registry-name>.azurecr.io/hemoglobinopathy-analysis
-
Create Azure Container App:
az containerapp create \ --name hemoglobinopathy-analysis \ --resource-group <resource-group> \ --image <registry-name>.azurecr.io/hemoglobinopathy-analysis \ --target-port 5000 \ --ingress external \ --env-vars \ OPENAI_API_KEY=<your-key> \ TWILIO_ACCOUNT_SID=<your-sid> \ TWILIO_AUTH_TOKEN=<your-token> \ TWILIO_PHONE_NUMBER=<your-number> \ DEPLOY_WHATSAPP_SERVER=true
-
Configure WhatsApp Webhook:
- Get your Azure Container App URL from the Azure portal
- In Twilio Console, set the WhatsApp webhook URL to:
https://<your-app-url>/whatsapp
Required environment variables:
OPENAI_API_KEY: OpenAI API key for LLM analysisTWILIO_ACCOUNT_SID: Twilio account SID for WhatsApp integrationTWILIO_AUTH_TOKEN: Twilio authentication tokenTWILIO_PHONE_NUMBER: Twilio WhatsApp number
-
Clone the repository:
git clone https://github.com/eehlss/microsoft-ai-app.git cd microsoft-ai-app -
Install dependencies:
pip install -r requirements.txt
-
Run the application:
streamlit run app.py
- 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
This project is licensed under the MIT License - see the LICENSE file for details.