Misnik commited on
Commit
2100a11
·
verified ·
1 Parent(s): c56712d

Create client.py

Browse files
Files changed (1) hide show
  1. client.py +12 -0
client.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from gradio_client import Client
2
+
3
+ # Адрес Spaces: "username/reponame" или полная ссылка
4
+ client = Client("Misnik/SEO")
5
+ result = client.predict(
6
+ text="Hello!!",
7
+ top_n=20,
8
+ diversity=0.3,
9
+ max_ngram=3,
10
+ api_name="/predict"
11
+ )
12
+ print(result)