Spaces:
Runtime error
Runtime error
Radosław Wolnik
commited on
Commit
·
12f038d
1
Parent(s):
43176a0
app.py
CHANGED
@@ -41,7 +41,8 @@ async def on_message(message):
|
|
41 |
|
42 |
message_counts[message.channel.id] = 0 # Reset the counter
|
43 |
|
44 |
-
|
|
|
45 |
splited_response = split_string(response)
|
46 |
for part in splited_response:
|
47 |
await channel.send(part)
|
|
|
41 |
|
42 |
message_counts[message.channel.id] = 0 # Reset the counter
|
43 |
|
44 |
+
|
45 |
+
response = ai.text_generation("message", temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0)
|
46 |
splited_response = split_string(response)
|
47 |
for part in splited_response:
|
48 |
await channel.send(part)
|