GianfrancoCorrea / gpt-4-vision-chat

GPT 4 Turbo Vision with Chainlit

Home Page:https://huggingface.co/spaces/CognitiveLabs/GPT-4-Vision-Chat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to GPT 4 turbo vision! πŸš€πŸ€–

Upload an image πŸ”—

  • option 1) Drag & Drop
  • option 2) Click in the "UPLOAD FILES" button, on the left of the chat input πŸ’¬
  • option 3) Copy a image and paste it in the chat input (ctrl + v)

GPT-4-1106-preview for messages that ARE NOT images πŸ“

  • change log:
    • Changed GPT-4-1106-preview for gpt-3.5-turbo-1106, due high cost of GPT-4-1106-preview

gpt-4-vision-preview for messages that ARE images πŸ“·

If you upload more than 1 image, it will take the first image, this is just for demo purposes

  • change log:
    • Added Low res mode, to test the fidelity of responses
    • Changed max_tokens from 300 to 100, to test the costs.
    • Changed max_tokens from the output to 300
    • Cleared image history after the response
    • Image size limit set up to 1mb

⚠ There is a limit of 100 requests per day for gpt-4-vision-preview

If a limit reached error appears, you can wait 15 minutes and try again or in a few hours. It is an openai limit.

install dependencies (recomended to use a virtualenv)

pip install -r requirements.txt

add the api key to the environment (.env)

OPENAI_API_KEY=<your api key>

run the app

chainlit run app.py

run the app with a specific port

chainlit run app.py --port 5001

About

GPT 4 Turbo Vision with Chainlit

https://huggingface.co/spaces/CognitiveLabs/GPT-4-Vision-Chat


Languages

Language:Python 94.2%Language:Dockerfile 5.8%