File size: 1,253 Bytes
93989e2 28f3d11 93989e2 a4e0765 93989e2 c279723 93989e2 87975b6 c279723 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | ---
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** |