Spaces:
Build error
Build error
| title: DriftCall Demo | |
| emoji: ποΈ | |
| colorFrom: pink | |
| colorTo: indigo | |
| sdk: gradio | |
| sdk_version: "5.8.0" | |
| app_file: app.py | |
| pinned: true | |
| license: apache-2.0 | |
| short_description: Indic voice concierge β base vs trained Gemma-3n LoRA | |
| tags: | |
| - gradio | |
| - voice | |
| - asr | |
| - tts | |
| - indic | |
| - rl | |
| - lora | |
| - gemma-3n | |
| models: | |
| - unsloth/gemma-3n-E2B-it | |
| - DGXAI/gemma-3n-e2b-driftcall-lora | |
| # DriftCall Demo β Voice Concierge under Schema Drift | |
| Live Gradio demo of the **DriftCall** RL environment. Speak a query in Hindi / | |
| Tamil / Kannada / English / Hinglish; the agent (Gemma-3n-E2B + DriftCall LoRA) | |
| plans across cab / hotel / airline / restaurant / payment vendors while | |
| mid-episode drift hits the schemas. | |
| ## Pipeline | |
| ``` | |
| mic βββΆ faster-whisper ASR βββΆ DriftCallEnv βββΆ Gemma-3n + LoRA βββΆ Kokoro TTS βββΆ speaker | |
| β² β | |
| β βΌ | |
| drift toggle live trace panel | |
| ``` | |
| ## Models | |
| - Base: [`unsloth/gemma-3n-E2B-it`](https://huggingface.co/unsloth/gemma-3n-E2B-it) | |
| - Trained adapter: [`DGXAI/gemma-3n-e2b-driftcall-lora`](https://huggingface.co/DGXAI/gemma-3n-e2b-driftcall-lora) | |
| - Switch in the UI between **base** (untrained) and **trained** to A/B compare | |
| the impact of the GRPO curriculum. | |
| ## Build / deploy | |
| ```bash | |
| # from the repo root | |
| bash deploy/demo_space/build.sh # build deploy/demo_space/build/ | |
| bash deploy/demo_space/build.sh --push # build + hf upload as a Space | |
| # env vars | |
| HF_SPACE_REPO default: DGXAI/driftcall-demo | |
| HF_TOKEN required for --push | |
| ``` | |
| ## Latency budget | |
| - ZeroGPU warm: β€ 8 s round-trip | |
| - A10G warm: β€ 12 s round-trip | |
| If a hardware probe falls outside the budget, the UI surfaces a `status_msg` | |
| warning instead of crashing β the 9 documented error modes (5.1β5.9 in | |
| `docs/modules/deploy_demo_space.md`) all return positional safe defaults. | |
| ## Sources | |
| This Space is built from `deploy/demo_space/build.sh` which rsyncs the | |
| canonical sources at the repo root: | |
| - `demo/app_gradio.py` β Gradio app (renamed to `app.py` in the build) | |
| - `cells/` β env, models, drift injector, audio, β¦ | |
| - `data/` β briefs, drift patterns, API schemas | |
| - `requirements.txt` β Gradio + faster-whisper + Kokoro + unsloth + peft | |