Spaces:
Runtime error
Runtime error
| # 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 | |
| } | |
| }' |