--- title: PuruAI AI Agent emoji: 🤖 colorFrom: purple colorTo: pink sdk: gradio sdk_version: 5.46.0 app_file: app.py pinned: false --- # 🤖 PuruAI Agent An AI Agent built on Hugging Face Spaces. ## ✨ Features - Loads **Medini Intelligence** model if available - Falls back to **GPT-2** when Medini is missing or private - Interactive **chat UI** powered by Gradio - Always runs (never crashes due to missing model) ## 🚀 Usage 1. Open the Space. 2. Type your message in the input box. 3. Get AI-generated responses in a conversational style. ## 🔐 Private Model Setup (Optional) If `PuruAI/Medini_Intelligence` is private: 1. Go to your Hugging Face profile → **Access Tokens** → create a new token. 2. In your Space, open **Settings → Repository secrets**. 3. Add: ``` HF_TOKEN=your_hf_token ``` The Agent will then load Medini instead of GPT-2. ## 🛠️ Run Locally Clone this repo and install dependencies: ```bash git clone https://huggingface.co/spaces/PuruAI/Agent cd Agent pip install -r requirements.txt python app.py ``` ## 📦 Requirements Main libraries used: - `transformers` - `torch` - `gradio` - `requests` (Already listed in `requirements.txt`) --- Made with 💜 by **PuruAI**