Spaces:
Sleeping
Sleeping
Prepare project for Hugging Face Space deployment - Add app.py with Gradio interface - Update requirements.txt with torch dependencies - Configure LFS for large files (models, data) - Update README with comprehensive documentation
d2173d1
| # Quick start script for Vehicle Diagnostics Agent UI | |
| echo "==========================================" | |
| echo "Vehicle Diagnostics Agent - Gradio UI" | |
| echo "==========================================" | |
| echo "" | |
| # Check if conda environment is activated | |
| if [[ "$CONDA_DEFAULT_ENV" != "vda" ]]; then | |
| echo "⚠️ Warning: vda conda environment not activated" | |
| echo "Please run: conda activate vda" | |
| echo "" | |
| fi | |
| # Check if model exists | |
| if [ ! -f "src/models/best_anomaly_detector.pth" ]; then | |
| echo "❌ Model not found. Please train the model first:" | |
| echo " python src/models/train_anomaly_detector.py" | |
| exit 1 | |
| fi | |
| # Check if data exists | |
| if [ ! -f "data/processed/test.csv" ]; then | |
| echo "❌ Processed data not found. Please run preprocessing:" | |
| echo " python src/utils/data_preprocessing.py" | |
| exit 1 | |
| fi | |
| echo "✅ Starting Gradio UI..." | |
| echo " Access at: http://localhost:7860" | |
| echo "" | |
| echo "Press Ctrl+C to stop" | |
| echo "" | |
| python src/ui/gradio_app.py | |