Spaces:
Sleeping
Sleeping
Download app_modular.py from brightmind-ai/test: direct link, hf CLI and curl.
- Browser
- Download file 798 Bytes
-
https://huggingface.co/spaces/brightmind-ai/test/resolve/main/app_modular.py
- Command line
-
hf download hf://spaces/brightmind-ai/test/app_modular.py
-
curl -L -o app_modular.py https://huggingface.co/spaces/brightmind-ai/test/resolve/main/app_modular.py
798 Bytes
| """ | |
| BrightMind AI - Modular Educational Assistant | |
| Main application file using modular architecture | |
| """ | |
| import gradio as gr | |
| from config import debug_token_status | |
| from database import init_database | |
| from ui_components import create_main_interface | |
| def main(): | |
| """Main application entry point""" | |
| # Debug token status | |
| debug_token_status() | |
| # Initialize database | |
| print("🔧 Initializing database...") | |
| init_database() | |
| # Create and launch the interface | |
| print("🚀 Starting BrightMind AI...") | |
| interface = create_main_interface() | |
| # Launch the application | |
| interface.launch( | |
| server_name="0.0.0.0", | |
| server_port=7860, | |
| share=False, | |
| debug=True, | |
| show_error=True | |
| ) | |
| if __name__ == "__main__": | |
| main() | |