tarot / test_curl.sh
oleh.rostovtsev
Add complete tarot reading app with AI model integration
2fbd0f4
#!/bin/bash
# Test script for Tarot Space API using curl
# Replace YOUR_SPACE_URL with your actual Space URL
SPACE_URL="https://your-username-tarot-reading.hf.space"
API_URL="${SPACE_URL}/api/predict"
echo "🔮 Testing Tarot Space API with curl"
echo "Space URL: $SPACE_URL"
echo "API URL: $API_URL"
echo "=================================="
# Test 1: Basic tarot reading
echo "Test 1: Basic tarot reading (The Fool, upright)"
curl -X POST "$API_URL" \
-H "Content-Type: application/json" \
-d '{
"data": ["The Fool", "upright", ""]
}' | jq '.'
echo -e "\n=================================="
# Test 2: Tarot reading with question
echo "Test 2: Tarot reading with question (The Magician, upright)"
curl -X POST "$API_URL" \
-H "Content-Type: application/json" \
-d '{
"data": ["The Magician", "upright", "What should I focus on in my career?"]
}' | jq '.'
echo -e "\n=================================="
# Test 3: Reversed card reading
echo "Test 3: Reversed card reading (The Lovers, reversed)"
curl -X POST "$API_URL" \
-H "Content-Type: application/json" \
-d '{
"data": ["The Lovers", "reversed", "What does this mean for my relationship?"]
}' | jq '.'
echo -e "\n=================================="
echo "✅ All tests completed!"