Download client.py from Misnik/SEO: direct link, hf CLI and curl.
- Browser
- Download file 274 Bytes
-
https://huggingface.co/spaces/Misnik/SEO/resolve/main/client.py
- Command line
-
hf download hf://spaces/Misnik/SEO/client.py
-
curl -L -o client.py https://huggingface.co/spaces/Misnik/SEO/resolve/main/client.py
274 Bytes
| from gradio_client import Client | |
| # Адрес Spaces: "username/reponame" или полная ссылка | |
| client = Client("Misnik/SEO") | |
| result = client.predict( | |
| text="Hello!!", | |
| top_n=20, | |
| diversity=0.3, | |
| max_ngram=3, | |
| api_name="/predict" | |
| ) | |
| print(result) |