Coder Social home page Coder Social logo

maldieve / midjourney-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from soyzhou/midjourney-ui

0.0 0.0 0.0 6.25 MB

Midjourney UI, latest features contains vary region

License: Apache License 2.0

JavaScript 2.41% TypeScript 89.99% CSS 6.27% Dockerfile 1.33%

midjourney-ui's Introduction

midjourney-ui

Midjourney UI is an open source txt2img UI for AI draw

discord bot example

See README.dev.md for development instructions. See a screenshot of the UI screenshot

Deploy

Vercel

Host your own live version of Midjourney UI with Vercel.

Deploy with Vercel

Netlify

Netlify can use ws

Deploy to Netlify

Docker

docker run --env-file .env -p 3000:3000 erictik/midjourney-ui

or

docker run -e SALAI_TOKEN=xxxxxxxx  -e SERVER_ID=xxxxxxxx -e CHANNEL_ID=xxxxxxxx -p 3000:3000 erictik/midjourney-ui

Runnning locally

  1. clone the repo
git clone https://github.com/erictik/midjourney-ui.git
cd midjourney-ui
  1. install dependencies
npm install

or

yarn
  1. set the environment variables
    How to get your Discord SALAI_TOKEN
    How to HUGGINGFACE_TOKEN
export SALAI_TOKEN=xxxxxxxx
export SERVER_ID=xxxxxxxx
export CHANNEL_ID=xxxxxxxx
export HUGGINGFACE_TOKEN=xxx
  1. run the development server
npm run dev

or

yarn dev
  1. open http://localhost:3000 with your browser to see the result.

Build

# if needed
yarn install --frozen-lockfile

yarn build

docker build -t erictik/midjourney-ui

Route map

  • imagine
  • upsclae & variation
  • prompt help
  • chatgpt prompt generation
  • history of generated images
  • Vary Region

Enable Auth

  1. No auth

No addition environment variables.

  1. Code
NEXT_PUBLIC_AUTH_PROVIDER=code
NEXT_PUBLIC_AUTH_CODE=123456

Input code to launch app code

  1. Netlify
export NEXT_PUBLIC_AUTH_PROVIDER=netlify

Need open netlify identity on netlify.

Enable Vary Region

Vary Region

  1. Local setting
# for macOS
export PUPPETEER_CHROME_BIN="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"

# for windows (Depends on your installation path)
export PUPPETEER_CHROME_BIN="C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
  1. Docker

Already be set up, can run directly.

  1. Netlify

Since the function has a 10s limit, it can't be called successfully.

midjourney-ui's People

Contributors

aeroxi avatar artemptushkin avatar gluneau avatar soyzhou avatar zcpua 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.