File size: 349 Bytes
ff6980a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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
    }
  }'