gradio icon indicating copy to clipboard operation
gradio copied to clipboard

PWA configuration for Gradio

Open sumitsahoo opened this issue 7 months ago • 3 comments

  • [x] I have searched to see if a similar issue already exists. Yes

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
Since Gradio is a web-based solution a PWA config should add more value. I see Gradio already supporting somewhat responsive designs and if PWA is enabled it will work like an app and can be installed on desktop and phone. All that is needed is a proper manifest (with proper icons) and a service worker. Maybe an option can be added to Gradio launch method which takes make_pwa as a boolean and sets the app icon just like we set favicon_path with the variable pwa_icon. Icons could be made more generic which takes a high res icons and generates favicon and pwa app icons and updates manifest json.

Additional context
N/A

sumitsahoo avatar Dec 10 '23 15:12 sumitsahoo

This is actually a pretty cool idea, as it would allow people to save popular apps to their phones as apps. Seems like it would be pretty straightforward: https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Guides/Making_PWAs_installable

abidlabs avatar Jan 23 '24 07:01 abidlabs

@abidlabs Yep and the thing is Gradio is already responsive (pretty much). There are helper tools that suggest what is needed for making an existing page a PWA. See PWA Builder. Hope this feature request can be added to the roadmap.

sumitsahoo avatar Jan 23 '24 08:01 sumitsahoo

I think this would be a great feature to have on gradio.

caviri avatar Apr 30 '24 09:04 caviri