Spaces:
Sleeping
Sleeping
File size: 798 Bytes
6cff14b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | """
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()
|