Spaces:
Sleeping
Sleeping
| #!/usr/bin/env python3 | |
| """ | |
| AI Agent Brainstorming Studio Launcher | |
| ====================================== | |
| Quick launcher for the AI Agent Brainstorming Studio. | |
| """ | |
| import os | |
| import sys | |
| from pathlib import Path | |
| def launch_studio(): | |
| """Launch the AI Agent Brainstorming Studio""" | |
| print("π§ AI Agent Brainstorming Studio") | |
| print("=" * 35) | |
| # Check if main file exists | |
| main_file = "app.py" | |
| if not Path(main_file).exists(): | |
| print(f"β Main file '{main_file}' not found") | |
| print(" Make sure you're in the correct directory") | |
| return False | |
| # Check if dependencies are installed | |
| try: | |
| import gradio | |
| import mcp | |
| print("β Dependencies verified") | |
| except ImportError as e: | |
| print(f"β Missing dependencies: {e}") | |
| print(" Run: python setup.py") | |
| return False | |
| print("π Starting AI Agent Brainstorming Studio...") | |
| print("π± Interface will open at: http://localhost:7864") | |
| print("π§ Two AI agents ready for collaboration!") | |
| print("βΉοΈ Press Ctrl+C to stop\n") | |
| # Launch the application | |
| try: | |
| os.system(f"python {main_file}") | |
| except KeyboardInterrupt: | |
| print("\nπ AI Agent Brainstorming Studio stopped") | |
| return True | |
| except Exception as e: | |
| print(f"\nβ Error launching studio: {e}") | |
| return False | |
| if __name__ == "__main__": | |
| success = launch_studio() | |
| if not success: | |
| print("\nπ‘ Need help? Check the README.md for setup instructions") | |
| sys.exit(1) |