Skip to content

A Streamlit app for chatting with uploaded images using Llama 3.2 11B Vision and LLaVA 1.5 7B and pixtral-12b-2409

Notifications You must be signed in to change notification settings

Hassn11q/chat-with-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Chat with Image 🖼️

Overview

This project is a Streamlit application that allows users to upload an image and interact with it through a chat interface. The application utilizes the Groq API and mistral API to generate responses based on user prompts related to the uploaded image.

Features

  • Upload images in formats such as JPG, JPEG, or PNG.
  • Select between different AI models for generating responses.
  • View chat history between the user and the assistant.
  • A clean and modern UI styled with Tailwind CSS.

Technologies Used

  • Python: Main programming language.
  • Streamlit: Framework for building the web application.
  • Groq: API for generating responses based on images and prompts.
  • mistral: API for generating responses based on images and prompts.
  • Tailwind CSS: CSS framework for styling the UI.
  • dotenv: For loading environment variables.

Installation

Prerequisites

  • Python 3.10
  • An active Groq API key
  • An active Mistral API key

Steps

  1. Clone the repository:

    git clone https://github.com/Hassn11q/chat-with-image.git
    cd chat-with-image
  2. Install the required packages: you can install the required packages using pip:

pip install -r requirements.txt
  1. Set up environment variables: Create a .env file in the root directory of the project and add your Groq API key:
GROQ_API_KEY=your_api_key
MISTRAL_API_KEY =your_api_key
  1. Run the application:
streamlit run app.py
  1. Access the application: Open your web browser and navigate to localhost to access the application.

About

A Streamlit app for chatting with uploaded images using Llama 3.2 11B Vision and LLaVA 1.5 7B and pixtral-12b-2409

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages