Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
6.5.1
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
Create and activate a virtual environment:
python -m venv venv source venv/bin/activateInstall 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.
Export your OpenAI API key as an environment variable:
export OPENAI_API_KEY=<your_openai_api_key> # or set it to other LLM providersStart the RAG system:
python character.py
Notes
- To share the demo, set share=True in the launch() method in chatUI.py. You should get a URL to share and it lasts for 72 hours.
- https://www.gradio.app/guides/sharing-your-app