test_AI_Agent / README.md
qunwang's picture
Add TTS and podcast generation
266ce23
---
title: Hanbridge Clare Assistant (Product UI)
emoji: πŸ’¬
colorFrom: yellow
colorTo: purple
sdk: docker
pinned: false
license: mit
---
# Hanbridge Clare Assistant – Product Version
This Space hosts **Clare**, an AI-powered personalized learning assistant for Hanbridge University.
## Architecture Overview
- **Frontend**: React + Vite (exported from Figma design)
- **Backend**: FastAPI (Python)
- **LLM Orchestration**: OpenAI + LangChain
- **Observability**: LangSmith
- **Deployment**: Hugging Face Docker Space
### Optional: Text-to-Speech & Podcast
- **TTS**: Uses the same **OpenAI API key** (no extra secrets). Convert export/summary text to speech.
- **Podcast**: Generates an MP3 from the session summary or full conversation.
- **Hugging Face**: Set `OPENAI_API_KEY` in the Space **Settings β†’ Secrets**. No extra env vars needed.
```
πŸ“¦ project/
β”œβ”€β”€ app.py
β”œβ”€β”€ api/
β”‚ β”œβ”€β”€ server.py
β”‚ β”œβ”€β”€ clare_core.py
β”‚ β”œβ”€β”€ rag_engine.py ← RAG
β”‚ └── tts_podcast.py ← TTS & podcast (OpenAI TTS)
└── requirements.txt
```