Pollinations自托管指南
自托管Pollinations服务可以让用户在自己的服务器上运行该平台,获得更好的隐私保护和定制能力。
Installation steps::
- 确保系统已安装Git和Python环境
- Cloning the code base:
git clone https://github.com/pollinations/pollinations.git
- Go to the project catalog:
cd pollinations
- Install the dependencies:
pip install -r requirements.txt
- Start the service:
python main.py
- 访问本地服务:http://localhost:5000
caveat::
- 自托管版本可能需要自行配置部分模型API密钥
- 服务器需要有足够计算资源(尤其是GPU)来支持AI推理
- 建议使用Python 3.8或以上版本
- 生产环境部署需要使用WSGI服务器如Gunicorn
- 国内用户可能需要配置代理解决github和模型下载问题
Advanced Configuration::
可以修改config.py文件调整:
- 默认模型参数
- 服务端口号
- 缓存设置
- 并发限制等
This answer comes from the articlePollinations: free big model services in the form of URL splicing and APIsThe