Upload installer.sh with huggingface_hub
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475#!/bin/bash
# -------------------------------------------------# ASHMODZ INSTALLER (FIGLET + CLEAN ASCII UI)# -------------------------------------------------
CYAN="\e[96m"GREEN="\e[92m"YELLOW="\e[93m"RESET="\e[0m"
clear
# Install figlet if missingif ! command -v figlet >/dev/null 2>&1; then echo -e "${YELLOW}Installing figlet...${RESET}" apt install -y figlet > /dev/null 2>&1fi
figlet "ASHMODZ"echo "==============================================="echo " CLEAN AUTO INSTALLER"echo "==============================================="echo ""
sleep 1
spin() { local pid=$! local delay=0.1 local spinstr='|/-\' echo -n " " while ps -p $pid > /dev/null; do local temp=${spinstr#?} printf " [%c] " "$spinstr" spinstr=$temp${spinstr%"$temp"} sleep $delay printf "\b\b\b\b\b" done echo ""}
echo -e "${YELLOW}Downloading package...${RESET}"wget -q https://huggingface.co/datasets/siyeyo/Hugetransfer/resolve/main/Emote-Web-UI-By-AshModz.zip & spinecho -e "${GREEN}Download complete${RESET}"
echo -e "${YELLOW}Extracting ZIP...${RESET}"unzip -o Emote-Web-UI-By-AshModz.zip > /dev/null 2>&1 & spinecho -e "${GREEN}Extraction complete${RESET}"
FOLDER=$(unzip -Z1 Emote-Web-UI-By-AshModz.zip | head -1 | cut -d/ -f1)
apt update -y > /dev/null 2>&1 & spinapt install -y python3 python3-pip > /dev/null 2>&1 & spinecho -e "${GREEN}Python installation complete${RESET}"
cd "$FOLDER"
echo -e "${YELLOW}Installing Python requirements...${RESET}"pip3 install -r requirements.txt > /dev/null 2>&1 & spinecho -e "${GREEN}Requirements installed${RESET}"
figlet "RUNNING"echo "==============================================="echo " SERVER STARTED"echo " OPEN IN BROWSER: http://127.0.0.1:5000"echo " PRESS CTRL+C TO STOP"echo "==============================================="echo ""
# -------------------------------------------------# RUN APP.PY NORMALLY (Foreground)# -------------------------------------------------
python3 app.pyinstaller.shAdded+75