|
|
|
""" |
|
Launch script for the Data Analysis Agent Gradio Interface |
|
""" |
|
|
|
import sys |
|
import os |
|
|
|
|
|
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) |
|
|
|
|
|
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) |