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) |