Commit History
-
Switch model to moonshotai/Kimi-K3:fireworks-ai Running
Co-Authored-By: Claude <noreply@anthropic.com>f048337
-
Add openai to requirements.txt
Co-Authored-By: Claude <noreply@anthropic.com>e3f0756 -
Switch to OpenAI client with Kimi-K3:fastest
- Use OpenAI router API (router.huggingface.co/v1) - Drop InferenceClient + Together provider, model is 'moonshotai/Kimi-K3:fastest' Co-Authored-By: Claude <noreply@anthropic.com>fe9229b -
Trim placeholder and model label to reflect direct inference
- 'ask anything' instead of 'task an agent' - 'K3 · DEFAULT' since there's no agent/HIGH mode switch Co-Authored-By: Claude <noreply@anthropic.com>78a122e
-
Add .gitignore for __pycache__ and .pyc
Co-Authored-By: Claude <noreply@anthropic.com>ee66045 -
Remove __pycache__ from repo
Co-Authored-By: Claude <noreply@anthropic.com>d860d77 -
Handle Gradio file references in to_data_url
The JS client sends file references (dict with path or URL) rather than raw paths. Unwrap dict/FileData and resolve via local file or remote URL download before base64-encoding. Co-Authored-By: Claude <noreply@anthropic.com>48cd7a5 -
Add return type annotation to chat() for streaming
Gradio needs an explicit return type to recognize the function as a generator endpoint and emit per-yield SSE chunks. Annotating -> dict silences the 'needed: 0, returned: 1' warning and lets partial values stream through. Co-Authored-By: Claude <noreply@anthropic.com>4e8189a -
Use client.submit() with for-await to stream data events
Gradio JS client exposes streaming via submit() returning an async iterator, not a stream() event emitter. Iterate over msg.type=='data' events to receive partial chunks. Co-Authored-By: Claude <noreply@anthropic.com>54d25fe -
Redesign UI as terminal-style chat
- Monospace font, prompt-prefixed lines, blinking cursor - Single-column layout centered at 900px max - Brand header with system info, minimal status bar - Pills for mode/model, icon button for attach - Streaming tokens with live re-render of assistant line Co-Authored-By: Claude <noreply@anthropic.com>0322825 -
Stream chat responses via SSE
- Use client.stream() with on('data') to receive partial chunks - Re-render assistant message as tokens arrive - Set stream_every=0.2 for faster partial updates Co-Authored-By: Claude <noreply@anthropic.com>078b2dd -
Read HF_TOKEN from server-side Space secret
- Remove OAuth/login flow from frontend - Token is set via Space settings, used by server-side chat endpoint - Drop hf_oauth from README Co-Authored-By: Claude <noreply@anthropic.com>ede422f -
Revert to documented @app .get('/', response_class=HTMLResponse) pattern
Co-Authored-By: Claude <noreply@anthropic.com>d6fa6f4 -
Fix / route being intercepted by Gradio API
Mount homepage route directly on FastAPI app via app.app.add_api_route to bypass Gradio's auto-registered API info endpoint at /. Co-Authored-By: Claude <noreply@anthropic.com>9ed47cb -
Convert to gradio.Server with custom HTML frontend
- Replace gr.Blocks chat app with gradio.Server - Add @app.api() chat endpoint with queuing - Serve custom index.html via @app.get("/") - Frontend uses @gradio/client for streaming chat - Bundle index.html via Spaces extra_files Co-Authored-By: Claude <noreply@anthropic.com>4dc6db2 -
Upload folder using huggingface_hub
Verified signaturef0ef68c -
initial commit
Verified signature07b80de