Spaces:
Sleeping
Sleeping
Download scripts/local_curl.sh from mjpsm/activity-progression-api: direct link, hf CLI and curl.
- Browser
- Download file 880 Bytes
-
https://huggingface.co/spaces/mjpsm/activity-progression-api/resolve/main/scripts/local_curl.sh
- Command line
-
hf download hf://spaces/mjpsm/activity-progression-api/scripts/local_curl.sh
-
curl -L -o local_curl.sh https://huggingface.co/spaces/mjpsm/activity-progression-api/resolve/main/scripts/local_curl.sh
880 Bytes
| set -e | |
| BASE_URL="${BASE_URL:-http://localhost:8000}" | |
| curl -s -X POST "${BASE_URL}/v1/progression/generate" \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "version": "v1", | |
| "knowledge_submission": "I created the video and showed the finished result first. It received 1,800 views and more engagement than my previous videos. I noticed viewers stayed longer when the final result appeared before the process.", | |
| "wisdom": { | |
| "content": "When I presented in class, showing the most interesting result before explaining the process got peoples attention.", | |
| "chapterTitle": "Lead With the Result", | |
| "BookTypeName": "Testimony", | |
| "BookType": "Personal Record" | |
| }, | |
| "village_goal": "Learn how to create engaging social media content", | |
| "previous_activity_title": "Test a stronger opening hook" | |
| }' | python3 -m json.tool | |