GithubHelp home page GithubHelp logo

gianfrancocorrea / gpt-4-vision-chat Goto Github PK

View Code? Open in Web Editor NEW
31.0 2.0 5.0 32 KB

GPT 4 Turbo Vision with Chainlit

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

Dockerfile 5.83% Python 94.17%
chainlit gpt-4 gpt-4-turbo gpt-4-vision

gpt-4-vision-chat's Introduction

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

gpt-4-vision-chat's People

Contributors

gianfrancocorrea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gpt-4-vision-chat's Issues

Langsmith telemetry not working

I configured the env variables for Langsmith but it does not seem to send any information to Langsmith. Is this properly configured in the app? Am unsure how to debug this. I am able to make Langsmith work with standard langchain examples.

Image upload not possible.

Hey, thanks for the app. When I run the app I don't see a button to upload an image on the left side, as mentioned in the readme.
This is what I see:
grafik

Also when I paste an image in the chat I get this response:
grafik

Oa

Ju hshs

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.