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

Add way to stop the the input stream when using gr.Image streaming. #1492

Closed
nateraw opened this issue Jun 8, 2022 · 2 comments
Closed

Add way to stop the the input stream when using gr.Image streaming. #1492

nateraw opened this issue Jun 8, 2022 · 2 comments

Comments

@nateraw
Copy link

nateraw commented Jun 8, 2022

Is your feature request related to a problem? Please describe.
When using gr.Image for streaming like this:

import gradio as gr

gr.Interface(lambda x: x, gr.Image(source='webcam', streaming=True), "image", live=True).launch()

There is no way to stop the app from running, it just keeps going until you close the tab.

Describe the solution you'd like

It would be nice to hit a button to have the app stop streaming inputs, similar to how the audio streaming feature works.

@JefferyChiang
Copy link
Contributor

#1323

@abidlabs
Copy link
Member

abidlabs commented Jun 9, 2022

Thanks for flagging the duplicate @JefferyChiang. Will close this issue and keep yours open until we can fix it!

@abidlabs abidlabs closed this as completed Jun 9, 2022
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

No branches or pull requests

3 participants