All-In-Streamlit

This project contains three main AI applications developed using the Streamlit library: Word Correction, Object Detection, and Chatbot. Each application demonstrates a different aspect of AI and machine learning, providing a hands-on approach to deploying models with a user-friendly interface.

View the Project on GitHub minhhoang2705/All-In-Streamlit

All-In-Streamlit

This project contains three main AI applications developed using the Streamlit library: Word Correction, Object Detection, and Chatbot. Each application demonstrates a different aspect of AI and machine learning, providing a hands-on approach to deploying models with a user-friendly interface.

Table of Contents

  1. Introduction
  2. Installation
  3. Word Correction
  4. Object Detection
  5. Chatbot
  6. Demo

Introduciton

In this project, we will focus on learning the Streamlit library, one of the code libraries open source is widely developed and applied to deploy AI applications in general.Streamlit provides effective tools for interacting with users to enter information or display information. In the following sections, we focus on developing the following basic applications:

Installation

To run these applications locally, you should follow this instruction:

  1. Clone this repository:
    git clone https://github.com/minhhoang2705/All-In-Streamlit.git
    cd All-In-Streamlit
    
  2. Install the required dependencies:
    pip install -r requirements.txt
    

    For those who want to use conda environment:

    conda env create -f <environment-name>.yml
    
  3. Run the applications using Streamlit:
    • For Word Correction:
      streamlit run levenshtein_distance.py
      
    • For Object Detection:
      streamlit run object_detection.py
      
    • For Chatbot:
      streamlit run chatbot.py
      

Word Correction

Description

The Word Correction application takes a user-inputted word and suggests the correct spelling using the Levenshtein distance algorithm. This applications showcases natural language processing capabilities and error correction.

Usage

  1. Run the application:
    streamlit run levenstein_distance.py
    
  2. Enter a word in the input box and click “Compute”.
  3. The application will display the corrected word and the Levenshtein distances for each word in the vocabulary.

Object Detection

Description

The Object Detection application allows users to upload an image, and it will detect and highlight objects within the image using a pre-trained deep neural network model.

Usage

  1. Run the application:
    streamlit run object_detection.py
    
  2. Upload an image file.
  3. The application will display the uploaded image with detected objects highlighted.

Chatbot

Description

The Chatbot application provides an interactive chat interface for users. It uses Hugging Face’s HugChat to generate responses based on user input.

Usage

  1. Run the application:
    streamlit run chatbot.py
    
  2. Enter your Hugging Face credentials.
  3. Start chatting with the bot.

Demo

Word Correction

Object Detection

Chatbot