Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -54,6 +54,12 @@ async def generate_command(
|
|
54 |
# Send images to Discord
|
55 |
await interaction.followup.send(content=f"Here are your {img_count} images for prompt: `{prompt}`", files=files)
|
56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
|
58 |
# --- Gradio Interface ---
|
59 |
def echo_text(text):
|
|
|
54 |
# Send images to Discord
|
55 |
await interaction.followup.send(content=f"Here are your {img_count} images for prompt: `{prompt}`", files=files)
|
56 |
|
57 |
+
async def on_ready():
|
58 |
+
await tree.sync()
|
59 |
+
print("Bot is ready!")
|
60 |
+
|
61 |
+
|
62 |
+
client.event(on_ready)
|
63 |
|
64 |
# --- Gradio Interface ---
|
65 |
def echo_text(text):
|