Spaces:
Running on Zero
Running on Zero
Commit History
-
Switch chat UI to gr.Server custom frontend
Replace the Gradio Chatbot UI with a custom frontend served through gr.Server, backed by static HTML, CSS, and JavaScript under static/. Highlights: - Drag-and-drop and paste file upload with media previews, a size cap, and a lightbox for images and video. - Example prompts on the empty state, including image, audio, and video media, shown in a responsive grid with thumbnails and a file count badge. Clicking an example replaces the current attachments. - A left sidebar that holds Clear chat and a settings disclosure, with responsive behavior on narrow screens. - Generation settings (temperature, top_p, top_k, repetition penalty) validated against a shared params spec, each with a short description. - Markdown and math rendering with HTML sanitization, syntax-highlighted code blocks with a pinned copy button, dark mode, and an error banner. - Edit last to take back the previous turn, and robust stop and error handling in the streaming path (worker thread reclaim on stream…63bc571