File size: 709 Bytes
b4235cf a35ab27 b4235cf 52680dd 4ec1236 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
---
license: other
datasets:
- gpt3mix/sst2
language:
- en
- zh
metrics:
- character
library_name: adapter-transformers
---
git lfs install
git clone https://huggingface.co/spaces/MirageML/dreambooth
import os
import requests
headers={"Authorization": f"Bearer {os.environ['EXHUMAN_API_KEY']}"}
body = {
'name': 'Elon Musk',
'context': [
{'turn': 'bot', 'message': 'Good morning!'},
{'turn': 'user', 'message': 'hi how are you?'}
]
}
api_endpoint = "https://api.exh.ai/chatbot/v1/get_response"
res = requests.post(api_endpoint, json=body, headers=headers)
response = res.json()["response"]
print(f"chatbot reply = {response}")
|