A newer version of the Gradio SDK is available:
5.43.1
Medical Brain AI Assistant - User Guide
📋 Table of Contents
🚀 Getting Started
- Open the application in your web browser (default local machine: http://localhost:7860)
- The interface consists of three main tabs:
- Prompt Settings
- Data Processing
- Batch Processing
💻 Interface Overview
📝 Prompt Settings Tab
This tab allows you to customize how the AI processes messages:
- Normal Prompt: Configure how the AI analyzes regular Medical Brain messages
- Stay Tuned Prompt: Configure processing for "stay tuned" type messages
- Update Button: Save your prompt changes
- Status: Shows if your changes were successful
🔍 Data Processing Tab
Main workspace for analyzing individual messages:
File Upload Section:
- Upload your JSON file
- View file information
- See patient summary
- Review chat history
Processing Section:
- Enter Medical Brain message number
- Select AI provider (OpenAI/Anthropic/Azure)
- View processing results
⚡ Batch Processing Tab
For processing multiple messages at once:
- Select multiple AI providers
- Process entire file
- Download results as CSV
📁 Working with Files
Supported File Format
The application accepts JSON files with the following structure: { "Messages": [...], "Ims": { "highlights": [...] } }
File Processing Steps
- Upload your JSON file
- Wait for initial processing
- Review the chat history
- Note the numbers of Medical Brain messages
🔄 Processing Data
Single Message Processing
- Find the Medical Brain message number in chat history
- Enter this number in the "Row Number" field
- Select your preferred AI provider
- Click "Process Row"
- Review the results
Batch Processing
- Select one or more AI providers
- Click "Start Batch Processing"
- Wait for processing to complete
- Download the CSV file with results
❗ Troubleshooting
Common Issues
File Upload Errors
- Ensure your JSON file has the correct format
- Check file size (max 100MB)
Processing Errors
- Verify API keys are correctly set
- Check internet connection
- Ensure message numbers are valid
Result Display Issues
- Refresh the page
- Try processing the message again
- Check browser console for errors
Error Messages
"⚠️ Please upload a file first"
- Solution: Upload a JSON file before processing
"⚠️ Row X is not a Medical Brain message"
- Solution: Enter a valid Medical Brain message number from chat history
"❌ Processing error"
- Solution: Check API keys and internet connection
📞 Support
If you encounter issues not covered in this guide:
- Check the application logs in the
logs/
directory - Create an issue in the GitHub repository
- Include error messages and steps to reproduce the problem