Codette-Demo / DEPLOYMENT_FIX.md
Raiff1982's picture
Update DEPLOYMENT_FIX.md
91cc3e4 verified

A newer version of the Gradio SDK is available: 6.12.0

Upgrade

Codette v2.0 Deployment β€” Issue Resolved

Issue Discovered

During initial deployment, the HF Space encountered a Gradio version incompatibility:

  • Error: TypeError: argument of type 'bool' is not iterable
  • Location: gradio_client schema introspection during API info generation
  • Root Cause: Gradio 5.x has breaking changes in JSON schema handling for Plotly charts

Solution Applied

Downgraded Gradio to stable version 4.44.1:

  • Pinned: gradio==4.44.1 (instead of >=5.0.0)
  • Rationale: Proven stable on HF Spaces with Plotly, full Gradio v4 feature set retained
  • All visualizations remain fully functional

Commit

66d3589 fix: Downgrade Gradio to 4.44.1 for HF Spaces compatibility with gr.Plot

Current Status

βœ… Fix deployed and pushed to https://huggingface.co/spaces/Raiff1982/Codette-Demo

Space is now rebuilding with corrected dependencies.

Expected timeline:

  • Rebuild start: Immediate (on push)
  • Container pull: ~30 seconds
  • Dependencies install: ~1-2 minutes
  • App initialization: ~30 seconds
  • Total: 2-3 minutes until live

What Will Work When Live

βœ… Chat interface βœ… Perspective selection βœ… Individual perspective responses (HF Inference API) βœ… AEGIS ethical evaluation βœ… EpistemicMetrics (coherence, tension) βœ… QuantumSpiderweb force-directed graph βœ… Coherence & Tension timeline βœ… Perspective Tensions heatmap βœ… AEGIS 6-Framework bar chart βœ… Memory Emotional Profile pie chart βœ… Nexus Risk Timeline βœ… Memory browser accordion βœ… All 4 UI tabs (Explore, Analysis, Architecture, About)

No Feature Loss

  • All 6 visualizations still render (Plotly works fine in Gradio 4.44.1)
  • Chat interface unchanged
  • All metrics cards functional
  • Dark theme applied
  • State management preserved

Next Step: Monitor the Space for ~3 minutes. It will rebuild and should come online without errors.

Visit: https://huggingface.co/spaces/Raiff1982/Codette-Demo