Spaces:
Sleeping
Sleeping
Download src/app/request_app.py from VelaTest/Look-A-Like_Image-Finder: direct link, hf CLI and curl.
- Browser
- Download file 221 Bytes
-
https://huggingface.co/spaces/VelaTest/Look-A-Like_Image-Finder/resolve/main/src/app/request_app.py
- Command line
-
hf download hf://spaces/VelaTest/Look-A-Like_Image-Finder/src/app/request_app.py
-
curl -L -o request_app.py https://huggingface.co/spaces/VelaTest/Look-A-Like_Image-Finder/resolve/main/src/app/request_app.py
221 Bytes
| import requests | |
| def get_api(end_point : str = None): | |
| # r = requests.get(f"https://velatest-world-data-insights-api.hf.space/{end_point}") | |
| r = requests.get(f"http://127.0.0.1:8000/{end_point}") | |
| return r.json() |