datagouv-french-data-analyst / launch_gradio.py
axel-darmouni's picture
update
2508004
raw
history blame contribute delete
798 Bytes
#!/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)