alex4cip Claude commited on
Commit
fb55a82
·
1 Parent(s): 78792e1

fix: Use chatbot_state instead of chatbot_value

Browse files

- Change from chatbot.chatbot_value to chatbot.chatbot_state
- Fixes AttributeError on Hugging Face Spaces deployment
- chatbot_state is the correct attribute in Gradio ChatInterface

Resolves runtime error:
AttributeError: 'ChatInterface' object has no attribute 'chatbot_value'

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -251,7 +251,7 @@ with gr.Blocks(
251
  model_dropdown.change(
252
  fn=on_model_change,
253
  inputs=[model_dropdown],
254
- outputs=[chatbot.chatbot_value, model_warning, model_warning],
255
  )
256
 
257
  gr.Markdown(
 
251
  model_dropdown.change(
252
  fn=on_model_change,
253
  inputs=[model_dropdown],
254
+ outputs=[chatbot.chatbot_state, model_warning, model_warning],
255
  )
256
 
257
  gr.Markdown(