Closed Ankur-singh closed 10 months ago
This looks like an amazing feature.
Perfect, I will start working on it this weekend
Amazing feature @Ankur-singh indeed. Here is how I imagine the feature being added to jina:
Deployment
s that use the HTTP
protocolself.streamer._endpoints_models_map
.self.requests
.Thank you so much @alaeddine-13 for all the insights.
I found this issue on https://ovio.org/projects and would like to contribute! Please guide on how to contribute and work on the project. Thanks
I have a minimal knowledge on python and would like to contribute to this open-source project.
Hey @Clarasia, I have already halfway through it. But still feel free to go ahead and give it a try. It will be a good learning experience.
Hi Ankur,
I was wondering how I can contribute to this project and when I should start.
All the best Clarasia
From: Ankur Singh @.> Sent: 16 August 2023 18:09 To: jina-ai/jina @.> Cc: Clarasia @.>; Mention @.> Subject: Re: [jina-ai/jina] Integrated Gradio Demo App (Issue #6026)
Hey @Clarasiahttps://github.com/Clarasia, I have already halfway through it. But still feel free to go ahead and give it a try. It will be a good learning experience.
— Reply to this email directly, view it on GitHubhttps://github.com/jina-ai/jina/issues/6026#issuecomment-1680974948, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BBSOXFNASYSWNZMSHH3B6WLXVT5EVANCNFSM6AAAAAA3MNCPY4. You are receiving this because you were mentioned.Message ID: @.***>
Hey @Ankur-singh ,
I suggest that if you already have some work in progress, you can open a draft PR so that we can perhaps start giving early feedback to the development, design, etc ...
I have create a Github gist (link) which demonstrates how to add a Gradio gateway to a Jina Flow
.
I wrote a function that takes Pydantic model as input and returns Gradio interface generated using the input model. The Gradio app is build dynamically and is mounted the FastAPI app
object at /demo
endpoint.
I have all the pieces but I will need to some help to add it to the flow/base.py
file. It would be great if the Gradio app (/demo
) can be places in the "HTTP extension" section when flow is executed.
You need to apply this in 2 places:
One in https://github.com/jina-ai/jina/blob/master/jina/serve/runtimes/worker/http_fastapi_app.py to be used when Deployment is used.
The other;
to be used when Flow is used.
Just one thing I think it shlould not be under /demo perhaps but under some private reserved name like _jina_gradio_demo
to avoid affecting when people may have a /demo endpoint defined
Thanks @JoanFM, these resources are really helpful. I agree with the private reserved name _jina_gradio_demo
for the endpoint.
@jina-ai/product This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days
Describe the feature The Jina project is an incredible tool that simplifies the process of deploying machine learning models by just writing an executor. It enables users to get a complete working service with ease. However, during the development and testing stages, it would be extremely beneficial to have an integrated Gradio demo app. This will provide an interactive user interface that allows users to easily interact and test the model without the need for using CURL, Postman, or programming languages.
Your proposal
/demo
endpoint.Benefits:
Implementation Approach:
This feature will further enhance the usability and user experience of the Jina project, making it an even more valuable tool for deploying machine learning models.
I am willing to take on this feature request as it presents an excellent opportunity to learn more about Jina internals.