Spaces:
Sleeping
Sleeping
| import os | |
| from dotenv import load_dotenv | |
| from ui.app import create_ui | |
| # Load environment variables | |
| load_dotenv() | |
| # Check if API key is set | |
| if not os.getenv("OPENAI_API_KEY"): | |
| print("Warning: OPENAI_API_KEY environment variable not set.") | |
| print("Please set it in a .env file or in your environment variables.") | |
| if __name__ == "__main__": | |
| # Create and launch the Gradio UI | |
| app = create_ui() | |
| app.launch() | |