Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support returning multiple messages from gr.ChatInterface #10024

Closed
wants to merge 21 commits into from

Conversation

abidlabs
Copy link
Member

No description provided.

@gradio-pr-bot
Copy link
Collaborator

gradio-pr-bot commented Nov 23, 2024

🪼 branch checks and previews

Name Status URL
Spaces ready! Spaces preview
Website building...
Storybook ready! Storybook preview
🦄 Changes detected! Details

Install Gradio from this PR

pip install https://gradio-pypi-previews.s3.amazonaws.com/99b1774f32fef41e6b8b551f403432b7d64ba2d6/gradio-5.6.0-py3-none-any.whl

Install Gradio Python Client from this PR

pip install "gradio-client @ git+https://github.com/gradio-app/gradio@99b1774f32fef41e6b8b551f403432b7d64ba2d6#subdirectory=client/python"

Install Gradio JS Client from this PR

npm install https://gradio-npm-previews.s3.amazonaws.com/99b1774f32fef41e6b8b551f403432b7d64ba2d6/gradio-client-1.8.0.tgz

Use Lite from this PR

<script type="module" src="https://gradio-lite-previews.s3.amazonaws.com/99b1774f32fef41e6b8b551f403432b7d64ba2d6/dist/lite.js""></script>

@gradio-pr-bot
Copy link
Collaborator

gradio-pr-bot commented Nov 23, 2024

🦄 no changes detected

This Pull Request does not include changes to any packages.

__No changes detected. __

  • Maintainers can select this checkbox to manually select packages to update.

Something isn't right?

  • Maintainers can change the version label to modify the version bump.
  • If the bot has failed to detect any changes, or if this pull request needs to update multiple packages to different versions or requires a more comprehensive changelog entry, maintainers can create the changelog file directly.

@abidlabs
Copy link
Member Author

I'm rethinking thi, because this breaks the implicit contract in gr.ChatInterface, where a user sends a single message to the chatbot and gets a single response. This would be problematic if you were to use the gr.ChatInterface in an API setting as the return type would no longer be a single message. Since this is a use case we are looking to grow and I'm not sure if there's a strong reason for this particular feature^, I'll go ahead and close this pR

@abidlabs abidlabs closed this Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants