File size: 321 Bytes
2e11453
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import requests
import json

url = "https://placingholocaust-vector-endpoint.hf.space/vectorize"
headers = {
    "accept": "application/json",
    "Content-Type": "application/json"
}
data = {
    "text": "This is a text"
}

response = requests.post(url, headers=headers, json=data)
result = response.json()
print(result)