File size: 166 Bytes
f87421a
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
from gradio_client import Client

client = Client("http://127.0.0.1:7860/")
result = client.predict(
		text="That's horrible",
		api_name="/predict"
)
print(result)