1chooo / refinaid

🐻 Enabling everyone unfamiliar with programming languages to easily engage with AI and open the doors to the world of the future. (AI4ALL)
https://refinaid.vercel.app/
Apache License 2.0
21 stars 5 forks source link

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

Open 1chooo opened 1 year ago

1chooo commented 1 year ago

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