BioLens is an advanced AI-driven application that analyzes blood reports and provides detailed health insights. Built with a multi-model cascade system, BioLens ensures in-depth medical analysis and personalized recommendations.
β
Intelligent AI-driven report analysis with multi-model processing
β
In-context learning for personalized insights
β
Secure user authentication & session tracking
β
PDF report upload, validation, and text extraction (up to 20MB)
β
Real-time feedback & session history tracking
β
Modern, responsive UI powered by Streamlit
πΉ Frontend: Streamlit π₯οΈ
πΉ AI Models: Multi-model architecture via Groq π€
- Primary: LLaMA-3.3-70B-Versatile
- Secondary: LLaMA-3-8B-8192
- Tertiary: Mixtral-8x7B-32768
- Fallback: Gemma-7B-IT
πΉ Database: Supabase ποΈ
πΉ PDF Processing: PDFPlumber π
πΉ Authentication: Supabase Auth π
- Python 3.12.8 π
- Streamlit 1.44.0
- Supabase account π
- Groq API key π
- PDFPlumber π
1οΈβ£ Clone the repository:
git clone https://github.com/ArchitJ6/BioLens.git
cd BioLens
2οΈβ£ Install dependencies:
pip install -r requirements.txt
3οΈβ£ Configure environment variables:
Create a .streamlit/secrets.toml
file and add:
SUPABASE_URL = "your-supabase-url"
SUPABASE_KEY = "your-supabase-key"
GROQ_API_KEY = "your-groq-api-key"
4οΈβ£ Run the application:
streamlit run src/app.py
π¦ BioLens
βββ π .streamlit
β βββ config.toml
β βββ secrets.toml
βββ π public
β βββ π database
β β βββ README.md
β
βββ π src
β βββ π agents
β β βββ analysisAgent.py
β β βββ modelManager.py
β β βββ services.py
β β βββ __init__.py
β β
β βββ π auth
β β βββ service.py
β β βββ session.py
β β βββ __init__.py
β β
β βββ π components
β β βββ auth.py
β β βββ footer.py
β β βββ form.py
β β βββ header.py
β β βββ sidebar.py
β β βββ __init__.py
β β
β βββ π config
β β βββ prompt.py
β β βββ sample.py
β β βββ __init__.py
β β
β βββ π utils
β β βββ pdfHelper.py
β β βββ validators.py
β β βββ __init__.py
β β
β βββ app.py
β
βββ .gitignore
βββ LICENSE
βββ README.md
βββ requirements.txt
For details on setting up the database, refer to the Database README.
π Upload a blood report (PDF) and receive a detailed AI-driven health analysis with personalized recommendations.
Contributions are welcome! Feel free to fork the repo and submit a pull request. π
This project is licensed under the terms of the MIT License.
This AI-generated analysis is for informational purposes only and is not a substitute for professional medical advice. Always consult a healthcare provider for accurate diagnosis and treatment.
If you found this project helpful, βοΈ star the repository and share it with others!
Happy coding! π