-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrun_gui.sh
More file actions
executable file
·42 lines (37 loc) · 1.07 KB
/
run_gui.sh
File metadata and controls
executable file
·42 lines (37 loc) · 1.07 KB
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
#!/bin/bash
# Quick launcher for the GUI on Unix/Mac
# Check if venv exists
if [ ! -d "venv" ]; then
echo "========================================"
echo "Virtual Environment Not Found"
echo "========================================"
echo ""
echo "This is your first time running the GUI."
echo "We need to set up the environment first."
echo ""
printf "Press Enter to run setup now, or Ctrl+C to cancel..."
read _
echo ""
bash scripts/setup_linux.sh
if [ $? -ne 0 ]; then
echo ""
echo "Setup failed. Please check the errors above."
exit 1
fi
echo ""
echo "Setup complete! Starting GUI..."
echo ""
fi
# Activate virtual environment
. venv/bin/activate
# Check and update binaries if needed
echo ""
python scripts/check_and_download_binaries.py
echo ""
echo "Starting YaGGUF GUI..."
echo ""
echo "Streamlit will open in your browser automatically."
echo "The URL will be displayed below."
echo "Press Ctrl+C to stop the server"
echo ""
streamlit run gguf_converter/gui.py --server.address=localhost