Coder Social home page Coder Social logo

imagine-webui's Introduction

Imaginepy Frontend WebUI

The API backend is currently dead :(

A user-friendly and intuitive web application interface that allows you to seamlessly generate creative images using the power of AI. This web application utilizes the Imaginepy library by @ItsCEED for AI image generation.

Web capture_16-6-2023_19718_imagine

  • Friendly UI
  • Lightweight
  • Dynamically fetch styles and their thumbnails
  • Gets options directly from the library

๐Ÿ“‹ Requirements

  • Python 3.7+
  • Virtual environment (python venv)

๐Ÿš€ Quick Setup

  1. Clone the repository:
git clone https://github.com/iGerman00/imagine-webui.git
cd imagine-webui
  1. Create and activate the virtual environment:
# Create a Python virtual environment named '.venv'
python3 -m venv .venv
# Activate the virtual environment
source .venv/bin/activate
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Run the application using Gunicorn:
gunicorn --workers 1 --bind localhost:3000 -m 007 wsgi:app

The application should now be running and accessible at http://localhost:3000.

๐Ÿ“ฆ Deploy as a systemd service

To run the AI Image Generation WebUI automatically at system startup and manage it using systemd, follow these steps:

  1. Create a new systemd service file:
sudo nano /etc/systemd/system/imagine-webui.service
  1. Copy the following content into the new service file, making sure to replace /path/to/imagine-webui with the actual path to the cloned repository:
[Unit]
Description=Gunicorn instance to serve Imagine WebUI
After=network.target

[Service]
User=your_username
Group=your_group
WorkingDirectory=/path/to/imagine-webui
Environment="PATH=/path/to/imagine-webui/.venv/bin"
ExecStart=/path/to/imagine-webui/.venv/bin/gunicorn --workers 1 --bind localhost:3000 -m 007 wsgi:app

[Install]
WantedBy=multi-user.target
  1. Reload the systemd configuration:
sudo systemctl daemon-reload
  1. Enable and start the service:
sudo systemctl enable imagine-webui
sudo systemctl start imagine-webui

The AI Image Generation WebUI should now be running in the background, managed by systemd, and accessible at http://localhost:3000.

๐Ÿ”„ Reverse Proxy with Caddy

To serve the AI Image Generation WebUI behind a reverse proxy using Caddy, follow these steps:

Install Caddy

Please follow the official installation instructions according to your operating system.

Configure Caddy

  1. Edit your Caddyfile in your preferred location (e.g., /etc/caddy/Caddyfile).
sudo nano /etc/caddy/Caddyfile
  1. Copy and paste the following configuration into the Caddyfile, making sure to replace imagine.yourdoma.in with your actual domain:
imagine.yourdoma.in {
    reverse_proxy http://localhost:3000
}

imagine-webui's People

Contributors

igerman00 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

nexusdiscord

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.