gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
30.73k stars 2.29k forks source link

Feature Request: Client loading a Space that requires user login as an API #8360

Open younesbelkada opened 1 month ago

younesbelkada commented 1 month ago

Is your feature request related to a problem? Please describe.

Hi there!

I would like to be able to load a Gradio Space that require explicit user login (such as: https://huggingface.co/spaces/ybelkada/gguf-my-repo ) as an API with gradio_client. To repro the current issue just run:

from gradio_client import Client

client = Client("ybelkada/gguf-my-repo")
result = client.predict(model_id="ybelkada/tiny-random-llama", q_method="Q8_0", private_repo=False, api_name="/predict")