icapp_space / client.py
gmshroff's picture
added API doc
5f32ca7
raw
history blame
212 Bytes
from gradio_client import Client
client = Client("https://gmshroff-gmserver.hf.space/")
result = client.predict(
"{'name':'Gautam'}", # str in 'name' Textbox component
api_name="/predict"
)
print(result)