Giter VIP home page Giter VIP logo

gen_ai_gpt's Introduction

Generative AI with ChatGPT

Gen AI with ChatGPT.
Gen AI with ChatGPT shows how how to generate AI from description by using ChatGPT and Dall-E2.
You can generate movie, image by using ChatGPT, Stable Diffusion like Dall-E2 easily.

Example.
prompt=cat on moon surface in space, tabby cat

how to use

  1. run commands like below in terminal.
    git clone https://github.com/mac999/gen_ai_gpt
    cd gen_ai_gpt
    pip install -r requirements.txt
  2. create API key from OpenAI platform website
  3. open gen_ai_gpt.py and assign the API key to OPENAI_API_KEY at TODO source code line by using editor.
import sys, os, re, argparse, json
from yaml import parse

import openai
OPENAI_API_KEY = "" # TODO. ADD OPENAI API KEY

def gen_ai_prompt(query):
    try:
        # description in detail from query 
        openai.api_key = OPENAI_API_KEY

        model = "gpt-3.5-turbo"
        messages = [
...

run

python gen_ai_gpt.py --query="달의 위를 두발로 걷고 있는 우주복 입은 치즈태비 고양이를 묘사해줘." --style="realistic lighting, ultra-detailed, 8K, photorealism" --output="./image.png"

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.