sunnymooni / freeGPT

freeGPT provides free access to text and image generation models.

Home Page:https://github.com/Ruu3f/freeGPT-discord

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

Text Generation:

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

Image Generation:

Model Website
prodia prodia.com
pollinations pollinations.ai

Support this repository:

DiscordWidget

TODO List:

  • Make the library well-documented.
  • Make the overall library easier to use.
  • Make the overall library easier to understand.
  • Add a non-GPT model.
  • Make a discord bot.
  • Add an image generation model.
  • Add more models.

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:

import freeGPT
from asyncio import run


async def main():
    while True:
        prompt = input("πŸ‘¦: ")
        try:
            resp = await getattr(freeGPT, "MODEL NAME").Completion().create(prompt)
            print(f"πŸ€–: {resp}")
        except Exception as e:
            print(f"πŸ€–: {e}")


run(main())

Image Generation:

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


async def main():
    while True:
        prompt = input("πŸ‘¦: ")
        try:
            resp = await getattr(freeGPT, "MODEL NAME").Generation().create(prompt)
            Image.open(BytesIO(resp)).show()
            print(f"πŸ€–: Image shown.")
        except Exception as e:
            print(f"πŸ€–: {e}")


run(main())

Star History Chart:

Star History Chart

About

freeGPT provides free access to text and image generation models.

https://github.com/Ruu3f/freeGPT-discord

License:GNU General Public License v3.0


Languages

Language:Python 100.0%