f strings
Browse files
falcon.py
CHANGED
@@ -54,11 +54,11 @@ async def try_falcon(interaction, prompt):
|
|
54 |
if interaction.channel.id == FALCON_CHANNEL_ID:
|
55 |
if os.environ.get('TEST_ENV') == 'True':
|
56 |
print("Safetychecks passed for try_falcon")
|
57 |
-
await interaction.response.send_message(
|
58 |
channel = interaction.channel
|
59 |
-
message = await channel.send(
|
60 |
thread = await message.create_thread(name=f'{prompt}', auto_archive_duration=60) # interaction.user
|
61 |
-
await thread.send(
|
62 |
|
63 |
if os.environ.get('TEST_ENV') == 'True':
|
64 |
print("Running falcon_initial_generation...")
|
|
|
54 |
if interaction.channel.id == FALCON_CHANNEL_ID:
|
55 |
if os.environ.get('TEST_ENV') == 'True':
|
56 |
print("Safetychecks passed for try_falcon")
|
57 |
+
await interaction.response.send_message("Working on it!")
|
58 |
channel = interaction.channel
|
59 |
+
message = await channel.send("Creating thread...")
|
60 |
thread = await message.create_thread(name=f'{prompt}', auto_archive_duration=60) # interaction.user
|
61 |
+
await thread.send("[DISCLAIMER: HuggingBot is a **highly experimental** beta feature; The Falcon model and system prompt can be found here: https://huggingface.co/spaces/HuggingFaceH4/falcon-chat]")
|
62 |
|
63 |
if os.environ.get('TEST_ENV') == 'True':
|
64 |
print("Running falcon_initial_generation...")
|