simple_chatwebUI / README.md
Yusuke710's picture
Upload folder using huggingface_hub
7524f15 verified

A newer version of the Gradio SDK is available: 6.5.1

Upgrade
metadata
title: simple_chatwebUI
app_file: chatUI.py
sdk: gradio
sdk_version: 5.7.1

Simple ChatWebUI

A lightweight and customizable framework for creating a web-based chatbot with support for Retrieval-Augmented Generation (RAG).


Installation

  1. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate
    
  2. Install the required packages:

    pip install anthropic openai PyYAML backoff gradio
    

Run Conversational AI on UI

   python chatUI.py

Run Conversational AI on Terminal

This is good for testing and debugging.

  1. Export your OpenAI API key as an environment variable:

    export OPENAI_API_KEY=<your_openai_api_key> # or set it to other LLM providers
    
  2. Start the RAG system:

    python character.py
    

Notes