supervision icon indicating copy to clipboard operation
supervision copied to clipboard

Gradio app integration with hugging face spaces

Open xiang-wuu opened this issue 2 years ago • 3 comments

Description

This PR is intended to integrate roboflow/supervision package as module using gradio and publish them with hugging face spaces to host the gradio app for quick evaluation as a interactive web demo, this PR doesn't contains significant gradio app specific changes as the app is hosted at spaces/xiang-wuu/supervision, any subsequent changes can be hosted using this single gradio app by raising the PR at spaces/xiang-wuu/supervision/pull. Many other functional components can be hosted and made available with the app hosted with hugging face space. for now below three functional components are implemented with the gradio app,

  • Interactive module for Image detection use-case
  • Interactive module for Image classification use-case
  • Interactive module for multi object tracking use-case

Many other use-case specific changes and new functional components as features will be integrated as changes to supervision/docs will be made.

References

  • https://huggingface.co/spaces
  • https://gradio.app/getting_started/
  • https://huggingface.co/docs/hub/spaces-config-reference

xiang-wuu avatar Sep 04 '23 12:09 xiang-wuu

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Sep 04 '23 13:09 CLAassistant

@xiang-wuu, I like the idea of showcasing it via Gradio for educational purposes. Maybe we should also include a code snippet that demonstrates how it has been used within that Gradio app to better illustrate its functionality. In the future, I would like to see that example in the supervision repository as a 'Gradio app.' I am aware that Roboflow also has space in the HF (Hugging Face) organization, so we can create a new space for supervision. Additionally, we can set up continuous integration (CI) to automatically reflect any changes made here in the Gradio app there. This way, we can centralize control of the Gradio app, instead of managing it through separate pull requests on HF.

Of course, I can't do this alone and would need some permissions and help from our amazing Roboflow team members, as well as their valuable input.

cc @SkalskiP @hardikdava @capjamesg

onuralpszr avatar Sep 10 '23 16:09 onuralpszr

@onuralpszr glad to here, as this small contribution could make significant impact to incorporate some useful and new functionality to the existing development process, however in my opinion it would be great if this issue could be added to current active project board with relevant TODO list to accomplish. You can also let me know how i can contribute to this stuff going ahead, I would be more than happy to contribute for this.

xiang-wuu avatar Sep 10 '23 18:09 xiang-wuu

PR was closed because Supervision currently has a dedicated HF space and Gradio app example. @xiang-wuu thanks a lot for your interest and ideas! 🙏🏻

SkalskiP avatar Jan 16 '24 08:01 SkalskiP