import requests
import json
payload = [{
"context": "In what year did Neil Armstrong land on the moon?",
"correct_response": "1969"
}, {
"context": "Who is the author of the book 'To Kill a Mockingbird'?",
"correct_response": "Harper Lee"
}, {
"context": "What is the capital of France?",
"correct_response": "Paris"
}]
url = "https://api.berri.ai/finetune_instance"
args = {
"user_email": "[email protected]",
"instance_id": "7156c47f-2f70-4c81-a622-5dc21ef716d2"
}
headers = {'Content-Type': 'application/json'}
data = json.dumps(payload)
response = requests.post(url, params=args, headers=headers, data=data)
print(response.text)