Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -173,8 +173,6 @@ async def on_message(message):
|
|
173 |
if "Feeway" in guild_name:
|
174 |
async with msgchannel.typing():
|
175 |
context += f"GPT4 Correct Assistant:"
|
176 |
-
title = ec(context, "<|title|>", "<|title|>")[0]
|
177 |
-
imgp = ec(context)[0]
|
178 |
load = random.choice(
|
179 |
[
|
180 |
"https://cdn.dribbble.com/users/744913/screenshots/4094897/media/771a495231b798c0ccf7a59a19f31946.gif",
|
@@ -186,6 +184,8 @@ async def on_message(message):
|
|
186 |
output = LLM.text_generation(context,
|
187 |
stop_sequences=["<|end_of_turn|>"],
|
188 |
max_new_tokens=4096)
|
|
|
|
|
189 |
with open(f"data/{guild_name}/{msgchannel_name}", "a") as f:
|
190 |
f.write(f"GPT4 Correct Assistant: {output}<|end_of_turn|>")
|
191 |
embed = discord.Embed(title=title,
|
|
|
173 |
if "Feeway" in guild_name:
|
174 |
async with msgchannel.typing():
|
175 |
context += f"GPT4 Correct Assistant:"
|
|
|
|
|
176 |
load = random.choice(
|
177 |
[
|
178 |
"https://cdn.dribbble.com/users/744913/screenshots/4094897/media/771a495231b798c0ccf7a59a19f31946.gif",
|
|
|
184 |
output = LLM.text_generation(context,
|
185 |
stop_sequences=["<|end_of_turn|>"],
|
186 |
max_new_tokens=4096)
|
187 |
+
title = ec(output, "<|title|>", "<|title|>")[0]
|
188 |
+
imgp = ec(output)[0]
|
189 |
with open(f"data/{guild_name}/{msgchannel_name}", "a") as f:
|
190 |
f.write(f"GPT4 Correct Assistant: {output}<|end_of_turn|>")
|
191 |
embed = discord.Embed(title=title,
|