Spaces:
Sleeping
Sleeping
Download test_after_update.sh from ocx2025/basicsearch: direct link, hf CLI and curl.
- Browser
- Download file 538 Bytes
-
https://huggingface.co/spaces/ocx2025/basicsearch/resolve/main/test_after_update.sh
- Command line
-
hf download hf://spaces/ocx2025/basicsearch/test_after_update.sh
-
curl -L -o test_after_update.sh https://huggingface.co/spaces/ocx2025/basicsearch/resolve/main/test_after_update.sh
538 Bytes
| echo "Waiting 90 seconds for Space to rebuild..." | |
| sleep 90 | |
| echo "" | |
| echo "1️⃣ Checking if API key has a value now..." | |
| curl -s https://ocx2025-basicsearch.hf.space/debug/env 2>/dev/null | python3 -m json.tool | |
| echo "" | |
| echo "2️⃣ Testing YouTube search..." | |
| curl -s -X POST https://ocx2025-basicsearch.hf.space/search \ | |
| -H "Content-Type: application/json" \ | |
| -d '{"query": "Python programming", "max_results": 1}' \ | |
| 2>/dev/null | python3 -m json.tool | |
| echo "" | |
| echo "✅ If you see video results above, it's working!" | |