Huggingface space on Serverless. How to get the Gradio API string which is the same as Worker ID?
I deployed Huggingface Space which use Gradio. If I have worker ID then I can connect to the worker usually like https://${workerID}-proxy.runpod.net/
How can I either the available workerIDs or forward my request from serverless endpoint to Gradio API which uses something like:
3 Replies
you want a way to pass on the workerID from the worker?
maybe you return it using https://docs.runpod.io/serverless/workers/handlers/handler-generator
and use the /stream in the endpoint to collect the result that you return from worker, without ending the job
Generator Handler | RunPod Documentation
RunPod offers real-time streaming for Language Model tasks, providing users with instant updates on job outputs. Two types of generator functions are supported, including regular and async generators, with the option to enable aggregate streaming for seamless access to results.