A newer version of the Gradio SDK is available:
6.0.2
π Quickstart Guide
Get your AI Digital Library Assistant up and running in minutes!
Prerequisites
- Python 3.10+ installed on your system.
- OpenAI API Key (for RAG and summarization).
- ElevenLabs API Key (optional, for Voice & Podcast features).
π οΈ Installation
Clone the repository:
git clone https://huggingface.co/spaces/YOUR_USERNAME/AiDigitalLibraryAssistant cd AiDigitalLibraryAssistantCreate a virtual environment (recommended):
python -m venv venv # Windows venv\Scripts\activate # Mac/Linux source venv/bin/activateInstall dependencies:
pip install -r requirements.txt
βοΈ Configuration
Create a
.envfile in the root directory:touch .envAdd your API keys to
.env:# Required for core features OPENAI_API_KEY=sk-your_openai_key_here # Required for Voice & Podcast features ELEVENLABS_API_KEY=your_elevenlabs_key_here ELEVENLABS_AGENT_ID=your_agent_id_here
πββοΈ Running the App
Start the application:
python app.pyOpen your browser: The app will launch automatically at
http://localhost:7860.
π‘ Usage Tips
- Upload Documents: Go to the "Library" tab to upload PDF, TXT, or DOCX files.
- Chat: Use the "Chat" tab to ask questions about your documents.
- Voice Mode: Click "Start Conversation" to talk to your library!
- Podcast Studio: Select documents and generate a custom podcast episode.
Built for the MCP-1st-Birthday Hackathon π