Properly using a space like an api requires knowing the fn_index. If you're a downstream consumer of an app, you may not know the fn_index and the fn_index can change if the upstream app is refactored.
Describe the solution you'd like
Would be nice to be able to do something like
demo = gr.Blocks.load("path-to-demo")
output = demo(input, api_name="prediction-route")
Where "prediction-route" is the api_name given to the event in the upstream space.
Additional context
Add any other context or screenshots about the feature request here.
Properly using a space like an api requires knowing the
fn_index. If you're a downstream consumer of an app, you may not know thefn_indexand the fn_index can change if the upstream app is refactored.Describe the solution you'd like
Would be nice to be able to do something like
Where "prediction-route" is the api_name given to the event in the upstream space.
Additional context
Add any other context or screenshots about the feature request here.