Spaces:
Sleeping
Sleeping
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>
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.
|
| 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(
|