File size: 798 Bytes
2508004
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/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)