Downloads · 30 days
0
Jeffreylex/Chatjeffrey
Chatjeffrey is a machine learning model from Jeffreylex. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for adapter-transformers. The card lists the license as other.
git lfs install git clone https://huggingface.co/spaces/MirageML/dreambooth
Downloads · 30 days
0
Access
Public
Updated Jan 25, 2023
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 68%
From the Hugging Face model README
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}")