|
| 1 | +#!/data/data/com.termux/files/usr/bin/bash |
| 2 | + |
| 3 | +echo "[+] Updating system..." |
| 4 | +pkg update && pkg upgrade -y |
| 5 | + |
| 6 | +echo "[+] Installing dependencies..." |
| 7 | +pkg install python git clang cmake libffi libffi-dev openssl openssl-dev -y |
| 8 | + |
| 9 | +echo "[+] Upgrading pip tools..." |
| 10 | +pip install --upgrade pip wheel setuptools |
| 11 | + |
| 12 | +echo "[+] Installing Streamlit and core packages..." |
| 13 | +pip install streamlit==1.49.1 |
| 14 | +pip install pandas==2.3.2 |
| 15 | +pip install numpy==2.2.2 |
| 16 | +pip install plotly==5.24.1 |
| 17 | +pip install matplotlib==3.9.2 |
| 18 | +pip install seaborn==0.13.2 |
| 19 | +pip install wordcloud==1.9.4 |
| 20 | +pip install streamlit-folium==0.23.1 |
| 21 | +pip install graphviz==0.20.3 |
| 22 | +pip install pillow==10.4.0 |
| 23 | +pip install pydeck==0.9.1 |
| 24 | +pip install scipy==1.14.1 |
| 25 | +pip install scikit-learn==1.5.2 |
| 26 | +pip install xgboost==2.1.1 |
| 27 | +pip install statsmodels==0.14.3 |
| 28 | +pip install tensorflow-cpu==2.20.0 |
| 29 | +pip install keras==3.11.3 |
| 30 | +pip install networkx==3.4.2 |
| 31 | +pip install rich==14.2.0 |
| 32 | +pip install requests==2.32.3 |
| 33 | +pip install openpyxl==3.1.5 |
| 34 | +pip install xlrd==2.0.1 |
| 35 | +pip install numpy-stl==3.2.0 |
| 36 | +pip install trimesh==4.3.2 |
| 37 | +pip install streamlit-modal==0.1.2 |
| 38 | +pip install opencv-python-headless |
| 39 | +pip install mlxtend==0.23.4 |
| 40 | +pip install streamlit --no-cache-dir |
| 41 | + |
| 42 | +echo "[+] Cloning Launcher repo..." |
| 43 | +if [ -d "Launcher" ]; then |
| 44 | + echo "[!] Folder Launcher already exists, skipping clone..." |
| 45 | +else |
| 46 | + git clone https://github.com/DwiDevelopes/Launcher.git |
| 47 | +fi |
| 48 | + |
| 49 | +cd Launcher/build/lib/streamlit_launcher || { |
| 50 | + echo "[✗] Directory Launcher/build/lib/streamlit_launcher not found!" |
| 51 | + exit 1 |
| 52 | +} |
| 53 | + |
| 54 | +echo "[+] Installing project requirements..." |
| 55 | +pip install -r requirements.txt --no-cache-dir || { |
| 56 | + echo "[!] Some packages failed, installing missing common modules..." |
| 57 | + pip install pandas psutil flask streamlit numpy plotly matplotlib seaborn wordcloud streamlit-folium graphviz pillow pydeck scipy scikit-learn xgboost statsmodels tensorflow-cpu keras networkx rich requests openpyxl xlrd numpy-stl trimesh streamlit-modal opencv-python-headless mlxtend streamlit --no-cache-dir |
| 58 | +} |
| 59 | + |
| 60 | +echo "[+] Running Streamlit server..." |
| 61 | +streamlit run dashboard.py --server.address=0.0.0.0 --server.port=8501 |
0 commit comments