| --- |
| 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** |