Spaces:
Sleeping
Sleeping
Download archive/scripts/test.sh from joshworksit/bot: direct link, hf CLI and curl.
- Browser
- Download file 973 Bytes
-
https://huggingface.co/spaces/joshworksit/bot/resolve/main/archive/scripts/test.sh
- Command line
-
hf download hf://spaces/joshworksit/bot/archive/scripts/test.sh
-
curl -L -o test.sh https://huggingface.co/spaces/joshworksit/bot/resolve/main/archive/scripts/test.sh
973 Bytes
| echo "Testing Crypto Intelligence Hub endpoints..." | |
| echo "" | |
| BASE_URL="${1:-http://localhost:7860}" | |
| echo "1. Testing /api/health" | |
| curl -s "$BASE_URL/api/health" | python3 -m json.tool | |
| echo "" | |
| echo "2. Testing /api/coins/top?limit=5" | |
| curl -s "$BASE_URL/api/coins/top?limit=5" | python3 -m json.tool | head -30 | |
| echo "" | |
| echo "3. Testing /api/market/stats" | |
| curl -s "$BASE_URL/api/market/stats" | python3 -m json.tool | |
| echo "" | |
| echo "4. Testing /api/sentiment/analyze" | |
| curl -s -X POST "$BASE_URL/api/sentiment/analyze" \ | |
| -H "Content-Type: application/json" \ | |
| -d '{"text":"Bitcoin is pumping to the moon!"}' | python3 -m json.tool | |
| echo "" | |
| echo "5. Testing /api/datasets/list" | |
| curl -s "$BASE_URL/api/datasets/list" | python3 -m json.tool | head -20 | |
| echo "" | |
| echo "6. Testing /api/models/list" | |
| curl -s "$BASE_URL/api/models/list" | python3 -m json.tool | head -30 | |
| echo "" | |
| echo "All tests completed!" | |
| echo "Open $BASE_URL/ in your browser to see the dashboard" | |