#!/usr/bin/env python3 """ Launch script for the Data Analysis Agent Gradio Interface """ import sys import os # Add the current directory to Python path sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) try: from app import demo print("šŸš€ Starting Data Analysis Agent...") print("šŸ“Š The interface will be available at: http://localhost:7860") print("🌐 A shareable link will also be provided") print("\n" + "="*50) # Launch the interface demo.launch() except ImportError as e: print(f"āŒ Import Error: {e}") print("\nšŸ’” Make sure you have installed all dependencies:") print(" pip install -r requirements.txt") sys.exit(1) except Exception as e: print(f"āŒ Error launching interface: {e}") sys.exit(1)