VibecoderMcSwaggins commited on
Commit
c20d2e7
Β·
1 Parent(s): 25356ea

feat(SPEC-23): add Gradio 6.0 best practices to ChatInterface

Browse files

Per SPEC-23 Gradio Modernization Audit:
- show_progress="full": Native spinner instead of broken gr.Progress
- fill_height=True: Chat fills vertical space
- autoscroll=True: Auto-scroll to latest message during streaming

All 311 tests pass.

Files changed (1) hide show
  1. src/app.py +5 -0
src/app.py CHANGED
@@ -257,6 +257,11 @@ def create_demo() -> tuple[gr.ChatInterface, gr.Accordion]:
257
  fn=research_agent,
258
  title="πŸ† DeepBoner",
259
  description=description,
 
 
 
 
 
260
  examples=[
261
  # SPEC-16: Mode is always "advanced" (unified architecture)
262
  # Examples now only need: [question, domain, api_key, api_key_state]
 
257
  fn=research_agent,
258
  title="πŸ† DeepBoner",
259
  description=description,
260
+ # SPEC-22: Use native progress instead of gr.Progress (which breaks ChatInterface)
261
+ show_progress="full",
262
+ # SPEC-23: Gradio 6.0 best practices
263
+ fill_height=True,
264
+ autoscroll=True,
265
  examples=[
266
  # SPEC-16: Mode is always "advanced" (unified architecture)
267
  # Examples now only need: [question, domain, api_key, api_key_state]