|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
|
|
|
echo "========================================================================" |
|
|
echo "π Mistral Model Fine-Tuning & Hosting Interface v2.0" |
|
|
echo "========================================================================" |
|
|
echo "β¨ New: Upload datasets, HuggingFace integration, GPU recommendations" |
|
|
echo "" |
|
|
|
|
|
|
|
|
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)" |
|
|
|
|
|
|
|
|
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 "" |
|
|
|
|
|
|
|
|
python3 interface_app.py |
|
|
|
|
|
|