Giter VIP home page Giter VIP logo

freegpt's Introduction

PyPI Downloads Status

freeGPT

freeGPT provides free access to text and image generation models.

Getting Started:

python -m pip install -U freeGPT

Join my Discord server for live chat, support, or if you have any issues with this package.

Sources:

Model Website
gpt3 chat9.yqcloud.top
gpt4 you.com
alpaca_7b chatllama.baseten.co
falcon_40b gpt-gm.h2o.ai
prodia prodia.com
pollinations pollinations.ai

Support this repository:

  • โญ Star the project: Star this and the freeGPT-discord repository. It means a lot to me! ๐Ÿ’•
  • ๐ŸŽ‰ Join my Discord Server: Chat with me and others. Join here:

DiscordWidget

Discord bot:

  • This bot has all the models in this repository available.
  • It's interactive, overall fast, and easy to use.
  • And lastly, it's open-sourced.

Examples:

Text Completion:

Async:

from freeGPT import AsyncClient
from asyncio import run


async def main():
    while True:
        prompt = input("๐Ÿ‘ฆ: ")
        try:
            resp = await AsyncClient.create_completion("MODEL", prompt)
            print(f"๐Ÿค–: {resp}")
        except Exception as e:
            print(f"๐Ÿค–: {e}")


run(main())

Non-Async:

from freeGPT import Client

while True:
    prompt = input("๐Ÿ‘ฆ: ")
    try:
        resp = Client.create_completion("MODEL", prompt)
        print(f"๐Ÿค–: {resp}")
    except Exception as e:
        print(f"๐Ÿค–: {e}")

Image Generation:

Async:

from freeGPT import AsyncClient
from PIL import Image
from io import BytesIO
from asyncio import run


async def main():
    while True:
        prompt = input("๐Ÿ‘ฆ: ")
        try:
            resp = await AsyncClient.create_generation("MODEL", prompt)
            Image.open(BytesIO(resp)).show()
            print(f"๐Ÿค–: Image shown.")
        except Exception as e:
            print(f"๐Ÿค–: {e}")


run(main())

Non-Async:

from freeGPT import Client
from PIL import Image
from io import BytesIO

while True:
    prompt = input("๐Ÿ‘ฆ: ")
    try:
        resp = Client.create_generation("MODEL", prompt)
        Image.open(BytesIO(resp)).show()
        print(f"๐Ÿค–: Image shown.")
    except Exception as e:
        print(f"๐Ÿค–: {e}")

Star History Chart:

Star History Chart

freegpt's People

Contributors

ruu3f 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.