DocUA's picture
ΠžΠΏΡ‚ΠΈΠΌΡ–Π·Π°Ρ†Ρ–Ρ ΠŸΡ€ΠΎΠΌΠΏΡ‚Ρ–Π²
178387f

A newer version of the Gradio SDK is available: 5.42.0

Upgrade
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

  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.