This project is a personal Chat Agent for Khaled Yaish, built with Python, Gradio, and OpenAI.
The agent loads context from summary.txt and me/linkedin.pdf and answers visitors as if Khaled himself.
It includes multiple tools such as:
- Booking meetings
- Sending CV / Portfolio
- Recording job offers
- Auto-generating Zoom links
- Mentorship requests
- Feedback collection
- Special alerts when certain names are mentioned
/my-agent-project
|-- app.py # Main code (Gradio + OpenAI Agent)
|-- requirements.txt # Project dependencies
|-- README.md # Project documentation (this file)
|-- .gitignore # Protects secrets and unnecessary files
|-- me/
|-- summary.txt # Personal summary
|-- linkedin.pdf # LinkedIn profile (optional)
- Python 3.10+
- OpenAI API key
- Pushover API token + user
- Clone the repository:
git clone https://github.com/USERNAME/personal-agent.git
cd personal-agent- Create a virtual environment:
python -m venv .venv
source .venv/bin/activate # Linux / macOS
.venv\Scripts\activate # Windows- Install dependencies:
pip install -r requirements.txt- Create a
.envfile and add your keys:
OPENAI_API_KEY=sk-...
PUSHOVER_TOKEN=your_pushover_token
PUSHOVER_USER=your_pushover_user
HF_TOKEN=hf_...
Run the app:
python app.pyGradio will provide a local URL (and sometimes a public share link).
Make sure .env is ignored:
.env
__pycache__/
*.pyc
.venv/
venv/- Create a new Space (select Gradio as SDK).
- Upload your project files.
- Add
requirements.txtand.gitignore. - Go to Settings → Repository secrets and add:
OPENAI_API_KEYPUSHOVER_TOKENPUSHOVER_USER
openai
python-dotenv
gradio
pypdf
requests
- Never commit
.envor any API keys. - If a key leaks, rotate it immediately.
- Use GitHub Secrets or Hugging Face Secrets for deployment.
Check out the live demo on Hugging Face Spaces:
👉 Personal Agent on Hugging Face