Spaces:
Running
Running
File size: 764 Bytes
2a10e9c |
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 31 32 |
#!/bin/bash
# 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
|