[main] issue found when adding deepfloyd stuff to main, removing and testing
Browse files
app.py
CHANGED
|
@@ -69,25 +69,7 @@ async def on_message(message):
|
|
| 69 |
except Exception as e:
|
| 70 |
print(f"Error: {e}")
|
| 71 |
#-------------------------------------------------------------------------------------------------------------------------------------
|
| 72 |
-
|
| 73 |
-
@app_commands.describe(
|
| 74 |
-
prompt='Enter a prompt to generate an image! Can generate realistic text, too!')
|
| 75 |
-
async def deepfloydif(interaction: discord.Interaction, prompt: str):
|
| 76 |
-
"""DeepfloydIF stage 1 generation"""
|
| 77 |
-
try:
|
| 78 |
-
await deepfloydif_stage_1(interaction, prompt, client)
|
| 79 |
-
|
| 80 |
-
except Exception as e:
|
| 81 |
-
print(f"Error: {e}")
|
| 82 |
-
#-------------------------------------------------------------------------------------------------------------------------------------
|
| 83 |
-
@client.event
|
| 84 |
-
async def on_reaction_add(reaction, user):
|
| 85 |
-
"""Checks for a reaction in order to call dfif2"""
|
| 86 |
-
try:
|
| 87 |
-
await deepfloydif_stage_2_react_check(reaction, user)
|
| 88 |
-
|
| 89 |
-
except Exception as e:
|
| 90 |
-
print(f"Error: {e} (known error, does not cause issues, low priority)")
|
| 91 |
#-------------------------------------------------------------------------------------------------------------------------------------
|
| 92 |
DISCORD_TOKEN = os.environ.get("DISCORD_TOKEN", None)
|
| 93 |
|
|
|
|
| 69 |
except Exception as e:
|
| 70 |
print(f"Error: {e}")
|
| 71 |
#-------------------------------------------------------------------------------------------------------------------------------------
|
| 72 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
#-------------------------------------------------------------------------------------------------------------------------------------
|
| 74 |
DISCORD_TOKEN = os.environ.get("DISCORD_TOKEN", None)
|
| 75 |
|