API_demo_client / app.py
Nuno-Tome's picture
update
34eb043
raw
history blame
189 Bytes
from gradio_client import Client
client = Client("Nuno-Tome/API_demo_server")
result = client.predict(
"Hello!!", # str in 'text' Textbox component
api_name="/predict"
)
print(result)