#!/usr/bin/env python3 """ Simple launcher for app.py that shows the URL clearly """ import time import webbrowser import subprocess import sys def main(): print("=" * 60) print("šŸš€ GAIA Agent Gradio Interface Launcher") print("=" * 60) print() print("šŸ“ The Gradio interface will be available at:") print(" 🌐 http://127.0.0.1:7860") print(" 🌐 http://localhost:7860") print() print("šŸ“± Opening browser automatically in 3 seconds...") print(" (If it doesn't open, copy one of the URLs above)") print() print("=" * 60) # Wait a bit time.sleep(3) # Try to open browser try: webbrowser.open("http://127.0.0.1:7860") print("āœ… Browser opened automatically") except: print("āš ļø Could not open browser automatically") print(" Please open http://127.0.0.1:7860 manually") print() print("šŸ”„ Starting Gradio app...") print("=" * 60) # Run the app try: subprocess.run([sys.executable, "app.py"], check=True) except KeyboardInterrupt: print("\nšŸ‘‹ App stopped by user") except Exception as e: print(f"\nāŒ Error running app: {e}") if __name__ == "__main__": main()