import gradio as gr
VIDEO_URL = "https://huggingface.co/datasets/squaredcuber/chalktalk-demo/resolve/main/chalktalk-demo.mp4"
LIVE_DEMO = "https://belong-picking-platinum-represents.trycloudflare.com"
HTML = f"""
\U0001F393 ChalkTalk
The AI tutor that talks and draws — live.
Type a topic and a full-duplex voice tutor (PersonaPlex) teaches it out loud while an
NVIDIA Nemotron director draws a labeled diagram on a whiteboard. Every part lights up the
moment the tutor says its name.
▶ Live demo: {LIVE_DEMO}
How it works
- PersonaPlex — a full-duplex, Moshi-architecture 7B speech model: it listens and speaks at the same time, so you can interrupt and ask questions mid-explanation.
- Nemotron SVG director — draws a clean, labeled diagram for each part of the lesson, streamed to a live whiteboard.
- Synced reveal — each labeled element appears the instant its keyword is spoken (synonym-aware, so paraphrases still land).
- Auto-progressing lessons — it teaches one part deeply, then voice and visuals advance together.
- Runs locally on a single GPU, wrapped in a shader-animated Gradio app.
Built by Codex.
"""
with gr.Blocks(title="ChalkTalk") as demo:
gr.HTML(HTML)
if __name__ == "__main__":
demo.launch(server_name="0.0.0.0", server_port=7860)