gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
32.51k stars 2.44k forks source link

Optionally include Inputs when sharing to community #4839

Open apolinario opened 1 year ago

apolinario commented 1 year ago

Is your feature request related to a problem? Please describe.
The new share button is amazing, however with the "Share to community" button we used to hand-craft, depending on the type of the demo, it kind of required context of what the input was. So the shared item was a combination of inputs / outputs (be it the prompt, or an image in case of image2image demos). The native share button only shares the output. This is limiting.

For example, for the image editing demo, you may want to include what was the source image before editing, and maybe the prompt too: image

Describe the solution you'd like
Some suggestions:

abidlabs commented 1 year ago

Thanks @apolinario yup I think we're leaning towards a .share() API -- cc @aliabid94