Skip to content

Commit

Permalink
Merge pull request #197 from bonk1t/fix/demo-gradio
Browse files Browse the repository at this point in the history
Update the demo_gradio method to align with the new package version
  • Loading branch information
bonk1t authored Dec 8, 2024
2 parents dbd0299 + 914b440 commit 77add5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions agency_swarm/agency/agency.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ def on_all_streams_end(cls):
cls.message_output = None
chatbot_queue.put("[end]")

def bot(original_message, history):
def bot(original_message, history, dropdown):
nonlocal attachments
nonlocal message_file_names
nonlocal recipient_agent
Expand Down Expand Up @@ -757,7 +757,7 @@ def bot(original_message, history):
dropdown.change(handle_dropdown_change, dropdown)
file_upload.change(handle_file_upload, file_upload)
msg.submit(user, [msg, chatbot], [msg, chatbot], queue=False).then(
bot, [msg, chatbot], [msg, chatbot, dropdown]
bot, [msg, chatbot, dropdown], [msg, chatbot, dropdown]
)

# Enable queuing for streaming intermediate outputs
Expand Down
2 changes: 1 addition & 1 deletion notebooks/os_models_with_astra_assistants_api.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@
"\n",
" return original_user_message, history + [[user_message, None]]\n",
"\n",
" def bot(original_message, history):\n",
" def bot(original_message, history, dropdown):\n",
" nonlocal message_file_ids\n",
" nonlocal message_file_names\n",
" nonlocal recipient_agent\n",
Expand Down

0 comments on commit 77add5d

Please sign in to comment.