Giter VIP home page Giter VIP logo

africanmx / dallebash Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 89.24 MB

A command-line interface (CLI) tool for interacting with OpenAI's DALL-E, allowing users to generate images based on prompts. Includes configuration options via wizard or command-line arguments, and supports interactive mode for continuous prompt input.

License: MIT License

Shell 59.05% Dockerfile 1.17% JavaScript 39.78%

dallebash's Introduction

DALL-E Terminal Chat

A comprehensive Bash script to interact with OpenAI's DALL-E API, allowing users to generate images from text prompts directly from their terminal. The script supports configuration management and stores generated images in a user-defined directory.

Features

  • Generate images from text prompts using the OpenAI API.
  • Store generated images in a specified output directory.
  • Configuration management for API key and output directory.
  • Easy to set up and use.
  • Configuration wizard for initial setup and changes.
  • Continuous prompt input, allowing multiple images to be generated in one session.
  • Multiline input support.

Requirements

  • Bash
  • curl
  • jq

Installation

Run the provided install.sh script to set up the necessary files and permissions.

./install.sh

Usage

Initial Setup

To configure your API key and output directory, run:

dallebash --config

or

dallebash --wizard

Generating Images

To generate an image from a text prompt, run:

dallebash "Your prompt here"

You can also run the script without arguments to enter the prompt interactively:

dallebash

While in interactive mode, enter your prompt and press Ctrl+Enter to submit. The program will stay active and ask for the next prompt or you can exit by pressing Ctrl+C.

Help

To display the help message, use:

dallebash --help

Configuration

To change the API key or output directory, use:

dallebash --config

or

dallebash --wizard

License

This project is licensed under the MIT License. See the LICENSE file for details.

dallebash's People

Contributors

lpolish avatar

Watchers

 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.