A newer version of the Gradio SDK is available: 6.12.0
metadata
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
- Open the Space.
- Type your message in the input box.
- Get AI-generated responses in a conversational style.
π Private Model Setup (Optional)
If PuruAI/Medini_Intelligence is private:
- Go to your Hugging Face profile β Access Tokens β create a new token.
- In your Space, open Settings β Repository secrets.
- Add:
HF_TOKEN=your_hf_token
The Agent will then load Medini instead of GPT-2.
π οΈ Run Locally
Clone this repo and install dependencies:
git clone https://huggingface.co/spaces/PuruAI/Agent
cd Agent
pip install -r requirements.txt
python app.py
π¦ Requirements
Main libraries used:
transformerstorchgradiorequests
(Already listed in requirements.txt)
Made with π by PuruAI