A newer version of the Gradio SDK is available:
5.42.0
metadata
title: Medical Brain Ai Assistant v.3 (3Level)
emoji: π
colorFrom: red
colorTo: blue
sdk: gradio
sdk_version: 5.12.0
app_file: main.py
pinned: false
π» Usage
Start the application:
Open web interface (default: http://localhost:7860)
The interface consists of three tabs:
π Prompt Settings
- Configure prompts for normal messages
- Configure prompts for "stay tuned" messages
- Save prompt changes
π Data Processing
- Upload JSON file with data
- View patient information
- View chat history
- Process individual Medical Brain messages
- Select LLM provider
- View analysis results
β‘ Batch Processing
- Select multiple providers
- Batch process all messages
- Save results to CSV file
π Project Structure
medical-brain-ai-assistant/ βββ main.py # Main entry point βββ src/ β βββ interface.py # Gradio interface β βββ processor.py # LLM data processing β βββ config/ β β βββ config.py # Configuration β βββ utils.py # Utility functions βββ results/ # Results directory βββ logs/ # Logs directory
π Processing Flow
- Upload JSON file with patient data and chat history
- Automatic detection of Medical Brain messages
- Option to process individual messages or entire dataset
- Analysis through selected LLM providers
- Save results in CSV format
β οΈ Important Notes
- Ensure you have active API keys for selected providers
- Start with processing individual messages for testing
- Results are saved in
results/
directory with timestamp - Application logs are stored in
logs/
directory
π Security
- API keys are stored locally in
.env
file - Input data is not shared with third parties
- All requests are logged for audit purposes
π€ Contributing
To contribute to the project:
- Fork the repository
- Create a new branch (
git checkout -b feature/improvement
) - Make changes and commit (
git commit -am 'Add improvement'
) - Push to your fork (
git push origin feature/improvement
) - Create a Pull Request
π§ Contact
For questions and suggestions, please create Issues in the repository.