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

gr.DuplicateButton appears even when run in a local environment #4825

Closed
1 task done
Tracked by #4804
hysts opened this issue Jul 7, 2023 · 1 comment · Fixed by #4832
Closed
1 task done
Tracked by #4804

gr.DuplicateButton appears even when run in a local environment #4825

hysts opened this issue Jul 7, 2023 · 1 comment · Fixed by #4832
Assignees
Labels
docs/website Related to documentation or website

Comments

@hysts
Copy link
Collaborator

hysts commented Jul 7, 2023

Describe the bug

Though the documentation of DuplicateButton says that it appears only on HF Spaces, it actually appears even when run in a local environment.

I can workaround by adding visible=os.getenv('SYSTEM') == 'spaces', but I guess it's supposed to work without doing this.

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

import gradio as gr

with gr.Blocks() as demo:
    gr.DuplicateButton()
demo.queue().launch()

Screenshot

Logs

No response

System Info

gradio==3.36.0

Severity

I can work around it

@hysts hysts added the bug Something isn't working label Jul 7, 2023
@abidlabs
Copy link
Member

abidlabs commented Jul 7, 2023

It's the documentation that needs to be updated. We decided to show the button even when running locally (but it would not have any effect) to avoid surprises when uploading to Spaces

@abidlabs abidlabs added docs/website Related to documentation or website and removed bug Something isn't working labels Jul 7, 2023
@aliabd aliabd self-assigned this Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs/website Related to documentation or website
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants