Coder Social home page Coder Social logo

mig38m / ai-art-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from n0madic/ai-art-bot

0.0 0.0 0.0 28 KB

App generates random images using AI Stable Diffusion and posts them in Telegram

License: MIT License

Python 94.34% Dockerfile 5.66%

ai-art-bot's Introduction

AI art bot

The app generates random images using AI Stable Diffusion and posts them in Telegram https://t.me/ai_art_random

Configuring

Environment variables:

  • HUGGING_FACE_HUB_TOKEN - token for Hugging Face for downloading models
  • TELEGRAM_TOKEN - bot token
  • TELEGRAM_ADMIN_ID - user ID to manage the bot
  • TELEGRAM_CHAT_ID - chat where images will be sent
  • UPSCALING - up to 4x image resolution with Real-ESRGAN (default true)
  • COMMAND_ONLY_MODE - bot command mode only
  • FACE_RESTORING - restoring faces in an image with GFPGAN (required enabled upscaling)
  • SLEEP_TIME - how many seconds to sleep between generations (default 60s)

Usage

Build and running in docker:

docker build -t ai-art-bot .
docker volume create ai-art-bot_huggingface
docker run --name ai-art-bot -d --env-file .env -v ai-art-bot_huggingface:/root/.cache/huggingface --gpus=all ai-art-bot

Running with docker-compose:

docker-compose up -d

ai-art-bot's People

Contributors

n0madic 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.