File size: 1,493 Bytes
a261a77 |
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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
#!/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
|