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

Be able to generate random samples in gr.Examples or examples in gr.ChatInterface #8325

Open
1 task done
djstrong opened this issue May 18, 2024 · 2 comments
Open
1 task done
Labels
enhancement New feature or request

Comments

@djstrong
Copy link

djstrong commented May 18, 2024

  • I have searched to see if a similar issue already exists.

Is your feature request related to a problem? Please describe.
I am using ChatInterface (https://huggingface.co/spaces/speakleash/Bielik-7B-Instruct-v0.1-test/blob/main/app.py) and want to sample examples with every page load.

Describe the solution you'd like
Maybe add sample_examples parameter to the ChatInterface?

Additional context
I tried load listener but without success.
Related issues: #5042 #8293

@abidlabs
Copy link
Member

Hi @djstrong if I understand correctly, you want to change the examples randomly every time the page loads?

@djstrong
Copy link
Author

Yes.

@abidlabs abidlabs changed the title Sample examples in ChatInterface Be able to generate random samples in gr.Examples or examples in gr.ChatInterface May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants