chat / run_dev.sh
rejig-ai's picture
Initial commit: Agent-based chat interface with Gradio 4.x compatibility
1c288bc
raw
history blame contribute delete
481 Bytes
#!/bin/bash
# Development script to run the app with hot reloading
# Set development environment
export ENVIRONMENT=development
# Run with Python's watchdog for auto-reloading
# If watchdog is not installed, you can install it with: pip install watchdog
if command -v watchmedo &> /dev/null; then
watchmedo auto-restart --directory=./ --pattern="*.py" --recursive -- python app.py
else
echo "For hot reloading, install watchdog: pip install watchdog"
python app.py
fi