A high-performance picture bed for zvms.
pip install -r requirements.txtPIL is also required.
International network environment is needed. (if you need to use huggingface)
python3 main.pyor you can use gunicorn to run it.
gunicorn -w 4 -bYou need to create a config.py. The content is as follows:
# config.py# The configuration file for skyView# config.py - skyView Configuration File# Storage MethodSTORAGE="..."# Storage Method (Backblaze, XueHai, Local)XUEHAI_URL="..."# XueHai API URLKEYID="..."# Backblaze KeyIDKEYNAME="..."# Backblaze KeyNameAPPKEY="..."# Backblaze AppKeyBASEURL="..."# Backblaze BaseURLCFURL="..."# Cloudflare Proxy URL# Database PathDB_PATH="db.sqlite3"# Database Path# 图片参数设定UPLOAD_FOLDER="..."# Cache FolderPAGE_SIZE=10# Default Page SizePAGE_NUM=1# Default Page NumberMAX_SIZE=3*1024*1024# Max Size of Image, otherwise it will be compressed# Congiguration of content moderationCHECK_ENABLED=False# Whether to enable content moderationKEYWORDS_GENERATE_ENABLED=False# Whether to enable keywords generationHF_ENABLED=False# Whether to enable huggingfaceHF_URL="..."# Whether to enable huggingface# Server ConfigurationSERVERURL="..."# Server URLSUPERADMINTOKEN="..."# Super Admin Tokenhost="0.0.0.0"# Server Hostport=6666# Server Port