|
--- |
|
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 |
|
|
|
1. Start the application: |
|
|
|
|
|
2. 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 |
|
|
|
1. Upload JSON file with patient data and chat history |
|
2. Automatic detection of Medical Brain messages |
|
3. Option to process individual messages or entire dataset |
|
4. Analysis through selected LLM providers |
|
5. 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: |
|
1. Fork the repository |
|
2. Create a new branch (`git checkout -b feature/improvement`) |
|
3. Make changes and commit (`git commit -am 'Add improvement'`) |
|
4. Push to your fork (`git push origin feature/improvement`) |
|
5. Create a Pull Request |
|
|
|
|
|
## π§ Contact |
|
|
|
For questions and suggestions, please create Issues in the repository. |