Spaces:
Sleeping
Sleeping
Download config/api.py from wendellast/GUI: direct link, hf CLI and curl.
- Browser
- Download file 312 Bytes
-
https://huggingface.co/spaces/wendellast/GUI/resolve/main/config/api.py
- Command line
-
hf download hf://spaces/wendellast/GUI/config/api.py
-
curl -L -o api.py https://huggingface.co/spaces/wendellast/GUI/resolve/main/config/api.py
312 Bytes
| from gradio_client import Client | |
| # ==========TEST API========== | |
| def response_gui(input_text): | |
| client = Client("wendellast/GUI") | |
| result = client.predict( | |
| message=input_text, | |
| max_tokens=512, | |
| temperature=0.7, | |
| top_p=0.95, | |
| api_name="/chat", | |
| ) | |
| return result | |