Skip to content

Repository files navigation

skyView

A high-performance picture bed for zvms.

dependencies

pip install -r requirements.txt

PIL is also required.

International network environment is needed. (if you need to use huggingface)

Run

python3 main.py

or you can use gunicorn to run it.

gunicorn -w 4 -b

Configure

You 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

document

see https://www.amzcd.top/posts/zvmsapi/#zvms_skyview_api.

About

A high-performance image bed for zvms4.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages