Spaces:
Running
Running
| # Start script for Viz LLM with Datawrapper integration | |
| echo "π Starting Viz LLM..." | |
| echo "" | |
| # Check for required environment variables | |
| if [ ! -f .env ]; then | |
| echo "β οΈ Error: .env file not found!" | |
| echo "Please create a .env file based on .env.example" | |
| exit 1 | |
| fi | |
| # Check if required packages are installed | |
| echo "π¦ Checking dependencies..." | |
| python -c "import gradio; import datawrapper; import pandas; import mcp" 2>/dev/null | |
| if [ $? -ne 0 ]; then | |
| echo "β οΈ Some dependencies are missing. Installing..." | |
| pip install -r requirements.txt | |
| fi | |
| echo "" | |
| echo "β Dependencies OK" | |
| echo "" | |
| echo "Starting Gradio app..." | |
| echo "Once started, open your browser to: http://localhost:7860" | |
| echo "" | |
| # Run the app | |
| python app.py | |