Skip to content

Commit

Permalink
wait is this gonna fix it?
Browse files Browse the repository at this point in the history
  • Loading branch information
elouangrimm authored Oct 29, 2024
1 parent b8df05f commit 0563cc2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ async def on_message(message):
api_url = "https://api-inference.huggingface.co/models/microsoft/DialoGPT-small"
headers = {"Authorization": f"Bearer {token}"}

custom_instructions = ai_instructions
input_text = custom_instructions + message.content

input_text = f"{ai_instructions}\nUser: {message.content}\nAI:"
data = {"inputs": input_text}
response = requests.post(api_url, headers=headers, json=data)

Expand Down

0 comments on commit 0563cc2

Please sign in to comment.