Spaces:
Sleeping
Sleeping
colesr Claude Opus 4.7 (1M context) commited on
Commit ·
f6e4444
1
Parent(s): 6ea6dd2
Fix Gradio 6 compat: drop Chatbot type=, move theme/css to launch()
Browse filesGradio 6 removed the `type` kwarg from Chatbot (messages is now the
default format) and moved theme + css from the Blocks constructor to
launch(). Both surfaced as a hard crash and a UserWarning on Space
boot. No behavior change beyond getting the app to start.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1698 unmodified lines1699170017011702170317041705122 unmodified lines1828182918301831183218331834631 unmodified lines24662467246824692470247124721698 unmodified linesdef create_demo():"""Create the main Gradio application"""with gr.Blocks(theme=DATATEGRITY_THEME, css=DATATEGRITY_CSS, title="Datategrity") as demo:gr.HTML("""<div id="dg-hero">122 unmodified lines"Apply or Reject. Cleaning applies mutate the loaded dataset.")copilot_chat = gr.Chatbot(type="messages",label="Conversation",height=440,show_copy_button=True,631 unmodified linesdemo.launch(footer_links=[{"label": "Built with anycoder", "url": "https://huggingface.co/spaces/akhaliq/anycoder"}],allowed_paths=["*"])1698 unmodified lines1699170017011702170317041705122 unmodified lines182818291830183118321833631 unmodified lines246524662467246824692470247124721698 unmodified linesdef create_demo():"""Create the main Gradio application"""with gr.Blocks(title="Datategrity") as demo:gr.HTML("""<div id="dg-hero">122 unmodified lines"Apply or Reject. Cleaning applies mutate the loaded dataset.")copilot_chat = gr.Chatbot(label="Conversation",height=440,show_copy_button=True,631 unmodified linesdemo.launch(theme=DATATEGRITY_THEME,css=DATATEGRITY_CSS,footer_links=[{"label": "Built with anycoder", "url": "https://huggingface.co/spaces/akhaliq/anycoder"}],allowed_paths=["*"],)
app.py+4-4