Skip to content

CodeAlchemyAI/ViLT-GPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages