First_agent_template / test_curl.sh
DocUA's picture
якась відносно робоча версія
ff6980a
raw
history blame
349 Bytes
#!/bin/bash
# Load environment variables
source .env
# Make a curl request to the endpoint
curl -X POST \
$MODEL_ENDPOINT \
-H "Authorization: Bearer $HF_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"inputs": "Hello! Can you hear me?",
"parameters": {
"max_new_tokens": 50,
"temperature": 0.7
}
}'