not getting the right output
#79
by
Sardarmoazzam
- opened
I am using the following code but the model dont gives the right output its just giving any random output its not giving output like it gives on hugging face interface:
import requests
"""""""API_URL = "https://api-inference.huggingface.co/models/meta-llama/Meta-Llama-3-8B-Instruct"
headers = {"Authorization": "Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}
def query(payload):
response = requests.post(API_URL, headers=headers, json=payload)
return response.json()
output = query({
"inputs": "Can you please let us know more details about your ",
})
print(output)""""""""