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)