simple-ai icon indicating copy to clipboard operation
simple-ai copied to clipboard

[Enhancement] Embedding `gradio` within a `fastapi` app

Open 1chooo opened this issue 2 years ago • 0 comments

Descriptions

The current content of our project can become overly complex if we try to expand it to include more information about us, demos, or machine learning materials. Moreover, it may lose its simplicity. Therefore, for our future direction, we can consider developing an app using Gradio's native FastAPI to build upon the foundation of our current project. This app can serve as a playground and even allow us to develop more small applications related to Gradio.

Reference

https://github.com/gradio-app/gradio/issues/1608 https://www.gradio.app/guides/fastapi-app-with-the-gradio-client https://blog.deploif.ai/posts/productionizing_your_model https://discuss.huggingface.co/t/dynamically-mount-a-gradio-block-from-within-a-fastapi-function/48983

Project Structure

https://github.com/pbudzyns/style-transfer-app https://github.com/GunwooHan/Gradio-Streamlit-FastAPI-tutorial https://github.com/dhanavishnu13/gradio_with_fastapi https://github.com/petr7555/fastapi-gradio-towhee-demo https://github.com/aybstain/Image_classifier_ResNet fastapi_crud_ui_jinja2

1chooo avatar Sep 06 '23 11:09 1chooo