File size: 538 Bytes
8027f40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
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!"