Skip to content

Welcome to the "Chat With Images" app! This innovative application allows users to upload images and engage in a dynamic chat interface. By leveraging the power of IBM Watson API, the app can process and respond to user messages, creating an interactive and engaging experience. Users can easily upload image files in JPG, JPEG, or PNG formats.

License

Notifications You must be signed in to change notification settings

billy-enrizky/chat-with-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat With Images - AI Assistant

App User Interface

App Interface

Overview

This project allows users to have a conversation with an AI assistant that can process both text and images using IBM's AI API. The assistant can analyze uploaded images and provide responses based on user interactions.

Features

  • Image Upload: Users can upload images (JPG, JPEG, PNG) for processing.
  • Chat Interface: Engages in text-based conversations.
  • Image Processing: Converts images into base64 format for analysis.
  • IBM Watson Integration: Utilizes IBM Watson API for intelligent responses.
  • Customization Options: Includes adjustable max tokens, decoding methods, and repetition penalties.
  • Dark Mode Support: Optional dark mode for better UI experience.
  • Download Chat History: Save conversations as a text file.
  • Clear Chat: Reset the chat session.

Installation

  1. Clone the repository:
    git clone https://github.com/billy-enrizky/chat-with-images.git
    cd chat-with-images
  2. Install dependencies:
    pip install -r requirements.txt
  3. Create a secrets.toml file inside the .streamlit folder and add your IBM API key:
    [secrets]
    IBM_API_KEY = "your_ibm_api_key"
  4. Run the application:
    streamlit run app.py

Usage

  1. Open the Streamlit app in your browser.
  2. Upload an image and/or enter text messages.
  3. The AI assistant will process the input and generate responses.
  4. Customize settings via the sidebar.
  5. Download chat history if needed.

Technologies Used

  • Python
  • Streamlit
  • IBM Watson API
  • PIL (Pillow)
  • Base64 Encoding
  • Requests Library

Future Improvements

  • Support for multiple image uploads.
  • Enhanced UI with more front-end features.
  • Additional AI models for better image and text understanding.

License

This project is licensed under the MIT License.

About

Welcome to the "Chat With Images" app! This innovative application allows users to upload images and engage in a dynamic chat interface. By leveraging the power of IBM Watson API, the app can process and respond to user messages, creating an interactive and engaging experience. Users can easily upload image files in JPG, JPEG, or PNG formats.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages