[main] indents
Browse files
app.py
CHANGED
|
@@ -45,10 +45,9 @@ async def on_ready():
|
|
| 45 |
print('------')
|
| 46 |
#-------------------------------------------------------------------------------------------------------------------------------------
|
| 47 |
@client.tree.command()
|
| 48 |
-
@app_commands.describe(
|
| 49 |
-
prompt='Enter some text to chat with the bot! Like this: /falcon Hello, how are you?')
|
| 50 |
async def falcon(interaction: discord.Interaction, prompt: str):
|
| 51 |
-
|
| 52 |
try:
|
| 53 |
await try_falcon(interaction, prompt)
|
| 54 |
except Exception as e:
|
|
@@ -64,8 +63,7 @@ async def on_message(message):
|
|
| 64 |
print(f"Error: {e}")
|
| 65 |
#-------------------------------------------------------------------------------------------------------------------------------------
|
| 66 |
@client.tree.command()
|
| 67 |
-
@app_commands.describe(
|
| 68 |
-
prompt='Enter a prompt to generate an image! Can generate realistic text, too!')
|
| 69 |
async def deepfloydif(interaction: discord.Interaction, prompt: str):
|
| 70 |
"""DeepfloydIF stage 1 generation"""
|
| 71 |
try:
|
|
|
|
| 45 |
print('------')
|
| 46 |
#-------------------------------------------------------------------------------------------------------------------------------------
|
| 47 |
@client.tree.command()
|
| 48 |
+
@app_commands.describe(prompt='Enter some text to chat with the bot! Like this: /falcon Hello, how are you?')
|
|
|
|
| 49 |
async def falcon(interaction: discord.Interaction, prompt: str):
|
| 50 |
+
"""Command that begins a new conversation with Falcon"""
|
| 51 |
try:
|
| 52 |
await try_falcon(interaction, prompt)
|
| 53 |
except Exception as e:
|
|
|
|
| 63 |
print(f"Error: {e}")
|
| 64 |
#-------------------------------------------------------------------------------------------------------------------------------------
|
| 65 |
@client.tree.command()
|
| 66 |
+
@app_commands.describe(prompt='Enter a prompt to generate an image! Can generate realistic text, too!')
|
|
|
|
| 67 |
async def deepfloydif(interaction: discord.Interaction, prompt: str):
|
| 68 |
"""DeepfloydIF stage 1 generation"""
|
| 69 |
try:
|