MSDSF25M004_Ver3 / README.md
MuhammadAhmadZia's picture
Upload folder using huggingface_hub
711ab00 verified

A newer version of the Gradio SDK is available: 6.13.0

Upgrade
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:

  1. Multi-Turn Conversation (Short-term Memory) β€” The bot remembers previous messages within a session
  2. Persistent Storage (Cross-Session Memory) β€” Chat history saved to chat_history.json and survives app restarts
  3. 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

  1. Set environment variables (or Secrets on HF Spaces):

    • GROQ_API_KEY β€” Your Groq Cloud API key
    • BRIGHT_DATA_USERNAME β€” Your Bright Data username
    • BRIGHT_DATA_PASSWORD β€” Your Bright Data password
  2. Install and run:

    pip install -r requirements.txt
    python app.py