GithubHelp home page GithubHelp logo

851579181 / stablediffusion-telegram-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from slippersheepig/stablediffusion-telegram-bot

0.0 0.0 0.0 66 KB

StableDiffusion图片生成电报机器人(HuggingFace接口)

Python 83.35% Dockerfile 16.65%

stablediffusion-telegram-bot's Introduction

搭配Hugging Face使用的图片生成机器人

Tip

需注册Hugging Face账号,在个人信息profile处点击settings-access tokens生成api复制备用

Note

该代码仅兼容StableDiffusion模型,其他模型未测试

.env

HUGGINGFACE_TOKEN=hf_ABCDEFGHIJKLMNOPQRSTUVWXYZ
BOT_TOKEN=123456789:abcdefghijklmnopqrstuvwxyz
API_URL=https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-2-1

(必填)HUGGINGFACEHUB_TOKEN:填入tip提到的api
(必填)BOT_TOKEN:电报机器人token
(必填)API_URL:调用模型的API链接,可在HuggingFace的模型详情页面右上方Deploy-Inference API查看
docker-compose.yml

services:
  chatgpt:
    image: sheepgreen/sdbot
    container_name: sdbot
    volumes:
      - ./.env:/app/.env
    restart: always

以上两个文件放同一目录,然后运行docker-compose up -d命令即可

stablediffusion-telegram-bot's People

Contributors

slippersheepig avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.