Spaces:
Sleeping
A newer version of the Gradio SDK is available: 6.13.0
title: Pai Kirk Debator
emoji: 💬
colorFrom: yellow
colorTo: purple
sdk: gradio
sdk_version: 4.44.1
app_file: app.py
pinned: false
hf_oauth: true
hf_oauth_scopes:
- inference-api
license: apache-2.0
short_description: pAI Charlie Kirk Debate Bot
pAI
Project Intention
This repository is the home for an innovative AI project dedicated to preserving the intellectual heritage of great thinkers through technology. At its core, it is designed to encourage users—especially the younger generation—to engage in thoughtful dialogues that seek truth, much like the Socratic method. By capturing the great thinkers' style, logic, and mindset of figures like Charlie Kirk (our first attempt) from publicly available resources (such as youtube videos, interviews, and debates), we aim to keep these treasures of human wisdom alive in a new, interactive form.
My personal journey into this began during my undergraduate philosophy course, where I achieved 100% attendance for both lectures and tutorials—the only class where I did so. It instilled in me a profound belief that truth emerges through rigorous debate, echoing Socrates' advocacy for questioning and discourse. This inspired the choice of Charlie Kirk as our starting point: his public work resonates with this philosophy, emphasizing critical thinking and values that foster personal and communal growth. Abundant resources like his YouTube debates provide a rich foundation to model his approach authentically.
This is the first step in a broader vision: Personality AI (pAI), where we create digital embodiments of influential minds. Using public materials—videos, audio, writings, and reports — we can distill their thinking methods, logic, and perspectives, much like how we learn from mentors in the real world. In the future, with time or contributions from like-minded individuals, we can expand to other great thinkers, ensuring their insights continue to inspire and guide humanity.
On a deeper societal level, this project stems from a concern for preserving mankind's treasures amid shifting cultural landscapes. I worry about the erosion of shared values that have long underpinned strong communities, leading to a sense that places like Britain and America — two pivotal pillars of human civilization — are not quite what they once were. By revitalizing debate and critical inquiry, we hope to contribute to making Britain great again and making America great again, focusing on unity, intellectual vitality, and the pursuit of truth for the betterment of society.
We're seeking collaborators who share this passion for cultural preservation and philosophical discourse. Whether you're from Turning Point UK Turning Point USA, or elsewhere, join us to refine this tool into one that sparks meaningful conversations and helps rebuild vibrant, thoughtful communities.
Key Features
- Fine-Tuned Model: Based on GPT-OSS-20B, infused with Kirk's philosophies from his video mainly in this first attempt. Available on Hugging Face: Entz/gpt-oss-20b-pai-debator.
- Webapp: Originally Supports text or audio input (via STT), generates Kirk-style responses, and clones them to voice using XTTS (CPU-based for broad accessibility). But in this first version, it's a simple text-based interface, because the audio input and output version takes too long to generate by using CPU only.
- Methodology: Offline data pipeline (extraction from youtube videos and online materials → text transcription → Harmony-formatted datasets → QLoRA fine-tuning). Emphasizes ethical use of public resources to capture authentic thinking patterns.
- Ethical Focus: Non-commercial; centered on societal improvement through debate, not division.
Limitations of the Webapp
While functional, the current webapp has room for growth to realize our dream of seamless, real-time interactions. Currently it is text based only, and has the following limitations that we're actively inviting developers to join and help us improve in future versions:
- Video demo: Audio is added during post production. Besides the audio speech, captured in the video is a real time performance which is generated by the model Entz/gpt-oss-20b-pai-debator in real-time (hosted on my personal pc with RTX Pro 6000). The audio is added later using a voice cloning technique that uses the original Kirk's voice as reference.
- Audio Generation Delay: XTTS voice cloning on CPU takes ~20-30 seconds per response, leading to noticeable waits. We're exploring faster models like Bark or StyleTTS that could leverage GPUs for near-instant output. But as most models employing dependencies such as CUDA or cuDNN are not compatible with sm-120 instances, we're currently limited to CPU-based inference.
- Voice Consistency: Longer responses may sound varied; no sentence splitting or streaming yet, which could enhance naturalness.
- Scope of Responses: Excels on topics from Kirk's youtube videos (e.g., values, education); may feel generic on uncovered areas. Invite report any misalignments — I'll review the dataset to ensure fidelity when time available.
- Technical Constraints: CPU-only TTS due to GPU compatibility issues (e.g., RTX PRO 6000); STT via Whisper is accurate but adds minor processing time.
- Overall: This is a prototype—fast text responses shine, but audio lags. We're at the early stage, facing these hurdles, and eager for collaborators to optimize (e.g., GPU integration, streaming) and turn it into a polished tool for global discourse.
How to Test & Contribute
- Testing Tips: Focus on topics Kirk has extensively covered (e.g., freedom in education, family values) for the best experience. Avoid niche subjects not in our dataset, as responses may resemble general AI outputs. Test debates to see how it embodies Socratic inquiry—question boldly!
- Feedback: If something doesn't align with Kirk's spirit or logic, open an issue with examples. I'll investigate the data to refine it.
- Join Us: Fork and PR for improvements like faster TTS, UI enhancements, or expansions to other thinkers. If you're passionate about revitalizing debate for societal good — perhaps adapting for UK contexts like Turning Point UK — let's collaborate! Together, we can make this a beacon for truth-seeking and cultural preservation.
Setup
- Clone the repo:
git clone https://github.com/entzyeung/pai.git. - Then follow this instruction page.
Thank you for your interest—let's keep the flame of inquiry burning bright!
Demo Video
Watch this short demo to see the bot in action:
Thank you for your interest—let's keep the flame of inquiry burning bright!