Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available: 6.13.0
metadata
title: MSDSF25M004_ver3
emoji: π§
colorFrom: purple
colorTo: red
sdk: gradio
sdk_version: 5.23.0
app_file: app.py
pinned: false
Version 3 β Multi-Turn AI Chatbot with Persistent Storage
This version extends Version 2 with three major enhancements:
- Multi-Turn Conversation (Short-term Memory) β The bot remembers previous messages within a session
- Persistent Storage (Cross-Session Memory) β Chat history saved to
chat_history.jsonand survives app restarts - Editable User Preferences β Users can set preferences at runtime that are injected into the system prompt
Features
- Tab 1: Website Scraper β Scrape bot-protected sites via Bright Data + Q&A
- Tab 2: YouTube Transcript β Fetch video transcripts + Q&A
- Tab 3: AI Chat with Memory β Multi-turn chat with persistent memory and editable preferences
Setup
Set environment variables (or Secrets on HF Spaces):
GROQ_API_KEYβ Your Groq Cloud API keyBRIGHT_DATA_USERNAMEβ Your Bright Data usernameBRIGHT_DATA_PASSWORDβ Your Bright Data password
Install and run:
pip install -r requirements.txt python app.py