Code Monkey home page Code Monkey logo

vilt-gpt's Introduction

ViLT-GPT ๐Ÿค—๐Ÿ’ฌ๐Ÿ‘๏ธ

ViLT-GPT is an innovative application that gives the conversational AI ChatGPT the ability to "see". By integrating OpenAI's Language Models (LLM) and LangChain with Vision-and-Language models, this app can answer queries based on the content of images. Now, you can interact with your images, ask questions and get informative responses.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Before running the app, make sure you have the following libraries installed:

  • dotenv
  • os
  • streamlit
  • PIL
  • transformers
  • LangChain
  • Streamlit Extras

Installing

To get a copy of this project up and running on your local machine, follow these steps:

  1. Clone the repository to your local machine.
git clone https://github.com/your-repository-url.git
  1. Go to the cloned repository.
cd repository-name
  1. Create virtual environment and activate
python -m venv env
source env/bin/activate
  1. Install package requirements
pip install -r requirements.txt
  1. Set environment variable(s)
cp .env.example .env
# modify OPENAI_API_KEY in .env file
  1. Run the application.
streamlit run app.py

How to use

To use this app, follow these steps:

  1. Launch the app.
  2. In the sidebar, click on 'Upload your IMAGE' to upload an image.
  3. Ask a question related to the uploaded image in the text input field.
  4. Wait for the processing to finish, and the answer to your question will appear below.
  5. Click 'Cancel' to stop the process.

Built With

  • Streamlit - The web framework used
  • LangChain - The language modeling framework
  • OpenAI - The language understanding model
  • ViLT - Vision-and-Language model from Hugging Face

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

vilt-gpt's People

Contributors

nicolas7894 avatar byrd-dot avatar cyzanfar 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.