mistral-finetuning-interface / start_interface.sh
Prithvik-1's picture
Upload start_interface.sh with huggingface_hub
a261a77 verified
#!/bin/bash
# Startup script for Mistral Fine-Tuning & Hosting Interface
echo "========================================================================"
echo "πŸš€ Mistral Model Fine-Tuning & Hosting Interface v2.0"
echo "========================================================================"
echo "✨ New: Upload datasets, HuggingFace integration, GPU recommendations"
echo ""
# Check if Python is available
if ! command -v python3 &> /dev/null; then
echo "❌ Python 3 is not installed or not in PATH"
exit 1
fi
echo "βœ“ Python 3 found: $(python3 --version)"
# Check if required packages are installed
echo ""
echo "Checking dependencies..."
if ! python3 -c "import gradio" &> /dev/null; then
echo "⚠️ Gradio not found. Installing dependencies..."
pip install -r requirements_interface.txt
else
echo "βœ“ Dependencies are installed"
fi
echo ""
echo "========================================================================"
echo "Starting interface..."
echo "========================================================================"
echo ""
echo "πŸ“‘ The interface will be available at:"
echo " - Local: http://localhost:7860"
echo " - Network: http://0.0.0.0:7860"
echo " - Public: Check terminal output for gradio.live URL"
echo ""
echo "πŸ“š Quick Reference: See QUICK_REFERENCE.md"
echo "πŸ“– Full Updates: See INTERFACE_UPDATES.md"
echo ""
echo "Press Ctrl+C to stop the server"
echo ""
# Start the interface
python3 interface_app.py