Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Nuno-Tome
/
API_demo_client
like
3
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
34eb043
API_demo_client
/
app.py
Nuno-Tome
update
34eb043
about 1 year ago
raw
Copy download link
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)