Spaces:
Runtime error
Runtime error
Download tests/test_api.py from AdrianPalmadev/Python: direct link, hf CLI and curl.
- Browser
- Download file 246 Bytes
-
https://huggingface.co/spaces/AdrianPalmadev/Python/resolve/f0ff05a7f4bd2ac6be89218e3037f381d04ea3f2/tests/test_api.py
- Command line
-
hf download hf://spaces/AdrianPalmadev/Python@f0ff05a7f4bd2ac6be89218e3037f381d04ea3f2/tests/test_api.py
-
curl -L -o test_api.py https://huggingface.co/spaces/AdrianPalmadev/Python/resolve/f0ff05a7f4bd2ac6be89218e3037f381d04ea3f2/tests/test_api.py
246 Bytes
| from gradio_client import Client | |
| client = Client("https://adrianpalmadev-rag-qa-system.hf.space") | |
| result = client.predict( | |
| query="Where is the hospital?", | |
| top_k=2, | |
| umbral=0.5, | |
| api_name="/ask" | |
| ) | |
| print("Respuesta:") | |
| print(result) |