Git Product home page Git Product logo

roboquote's Introduction

roboquote

Generate random "inspirational" quotes images by using an AI text generation model.

The following models can be used:

Examples

How it works

  1. A background is picked from Unsplash, either randomly or by giving roboquote a search query.
  2. The model is prompted to give an "inspirational" quote for the given background search query.
  3. The quote is inserted on the image which is then saved.

Usage

Installation

  1. Install the project with poetry by doing poetry install.
  2. Set environment variables for configuration (the project uses environs so you can also put the variable in a env file):
    • HUGGING_FACE_ACCESS_TOKEN (required): your Hugging Face access token for their Inference API
    • GROQ_CLOUD_API_KEY (required): your GroqCloud API key for their API
    • LOG_LEVEL (optional, default is WARNING): log level of the application
    • WEB_DEBUG (optional, default is False): if you want to run the web app in debug mode (should not be required)

CLI usage

Run poetry run python main.py my_file.jpg to generate a new random image.

See poetry run python main.py --help for the available options.

Web usage

The web version is a Starlette application (roboquote.web.app:app).

It can be launched quickly locally with uvicorn through the make run-web command.

Credits

roboquote's People

Contributors

corenting avatar dependabot[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

roboquote's Issues

Web interface

Instead of just having a CLI, add a web interface.

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.