#!/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