- Added a descriptive header to the app for clarity on its purpose.
- Updated the display_message function to include type hints and a docstring for better documentation.
- Improved the message selection logic by specifying the type of messages as a list.
- Ensured the app launches correctly when executed as the main module.
Update Gradio interface header to reflect BMSK status
- Updated the Gradio interface to load the display_message function dynamically, improving the status display mechanism.
- Changed the launch configuration to show the API in the demo.
- Specified a minimum version requirement for Gradio in requirements.txt.
Refactor Gradio interface to display ammonia status
- Replaced the run_troubleshooting function with a new display_message function to show a specific alert regarding ammonia levels.
- Updated the Gradio interface to use Blocks for a more structured layout, including a Markdown header and a non-interactive textbox for status display.
Update Gradio interface launch configuration to enable MCP server mode
- Added dotenv support to load environment variables from a .env file.
- Updated SUPABASE_URL and SUPABASE_KEY retrieval to use os.environ for better configuration management.
Add troubleshooting functionality with Gradio interface
- Implemented the run_troubleshooting function to process sensor and threshold data.
- Added data loading from Supabase if dataframes are not defined.
- Created a Gradio interface to display troubleshooting information based on alerts.
- Refactored alert processing logic to improve clarity and maintainability.