# What should be indicated in the payload

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwhat-should-be-indicated-in-the-payload%2F55649%3E%5C
**Category:** Beginners\
**Created:** [September 19, 2023, 4:46pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwhat-should-be-indicated-in-the-payload%2F55649 "2023-09-19T16:46:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brunop26](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@brunop26](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fbrunop26)%5C
**Post date:** [September 19, 2023, 4:46pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwhat-should-be-indicated-in-the-payload%2F55649%2F1 "2023-09-19T16:46:08Z")

</div>

Hello,  
What should be indicated in the payload of the code below?

import requests

API\_URL = “[/static-proxy?url=https%3A%2F%2Fapi-inference.huggingface.co%2Fmodels%2Fsentence-transformers%2Fall-mpnet-base-v2%5D(https%3A%2F%2Fapi-inference.huggingface.co%2Fmodels%2Fsentence-transformers%2Fall-mpnet-base-v2)%E2%80%9D  
headers = {“Authorization”: “Bearer hf\_LxxWLOKfPbNAIpASVkBMkLwsjUbCbxLcSf”}

def query(payload):  
response = requests.post(API\_URL, headers=headers, json=payload)  
return response.json()

output = query({  
“inputs”: {  
“source\_sentence”: “That is a happy person”,  
“sentences”: [  
“That is a happy dog”,  
“That is a very happy person”,  
“Today is a sunny day”  
]  
},  
})
