Spaces:
Runtime error
Runtime error
Download scripts/make_request.sh from TangibleAI/mathtext-fastapi: direct link, hf CLI and curl.
- Browser
- Download file 952 Bytes
-
https://huggingface.co/spaces/TangibleAI/mathtext-fastapi/resolve/08fe3ff98cd036efbff33e8ceaffbb8bf79cd692/scripts/make_request.sh
- Command line
-
hf download hf://spaces/TangibleAI/mathtext-fastapi@08fe3ff98cd036efbff33e8ceaffbb8bf79cd692/scripts/make_request.sh
-
curl -L -o make_request.sh https://huggingface.co/spaces/TangibleAI/mathtext-fastapi/resolve/08fe3ff98cd036efbff33e8ceaffbb8bf79cd692/scripts/make_request.sh
952 Bytes
| #root_url="localhost:7860" | |
| root_url="https://tangibleai-mathtext-fastapi.hf.space" | |
| ep="/" | |
| url=$root_url$ep | |
| data='' | |
| response=$(curl --silent -X GET "$url" -H 'Content-Type: application/json') | |
| echo "URL: $url" | |
| echo "Data: $data" | |
| echo "Response: $response" | |
| echo | |
| ep="/hello" | |
| url=$root_url$ep | |
| data='{"content":"Rori"}' | |
| response=$(curl --silent -X POST "$url" -H 'Content-Type: application/json' -d "$data") | |
| echo "URL: $url" | |
| echo "Data: $data" | |
| echo "Response: $response" | |
| echo | |
| ep="/sentiment-analysis" | |
| url=$root_url$ep | |
| data='{"content":"I am happy with it!"}' | |
| response=$(curl --silent -X POST "$url" -H 'Content-Type: application/json' -d "$data") | |
| echo "URL: $url" | |
| echo "Data: $data" | |
| echo "Response: $response" | |
| echo | |
| ep="/text2int" | |
| url=$root_url$ep | |
| data='{"content":"one hundred forty two"}' | |
| response=$(curl --silent -X POST "$url" -H 'Content-Type: application/json' -d "$data") | |
| echo "URL: $url" | |
| echo "Data: $data" | |
| echo "Response: $response" | |
| echo | |