Synced repo using 'sync_with_huggingface' Github Action
Browse files
app.py
CHANGED
@@ -55,8 +55,10 @@ async def on_ready():
|
|
55 |
event.set()
|
56 |
|
57 |
|
58 |
-
|
59 |
-
|
|
|
|
|
60 |
async def ping(ctx):
|
61 |
await ctx.respond(f"{bot.latency*1000:.0f}ms")
|
62 |
|
@@ -147,14 +149,11 @@ def run_dffusion(pos_prompt: str,neg_promt: str = "",img_url= "",model="absolute
|
|
147 |
|
148 |
|
149 |
# AI prediction command
|
150 |
-
@bot.
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
improve : discord.option(discord.SlashCommandOptionType.string,choices = ["True","False"], description="Improve the results", default="False"),
|
156 |
-
model : discord.option(discord.SlashCommandOptionType.string,choices = models, description="The model to use", default="absolutereality_v181.safetensors [3d9d4d2b]")
|
157 |
-
):
|
158 |
"""
|
159 |
AI command to generate images
|
160 |
"""
|
|
|
55 |
event.set()
|
56 |
|
57 |
|
58 |
+
@bot.hybrid_command(
|
59 |
+
name="ping",
|
60 |
+
description="ping"
|
61 |
+
)
|
62 |
async def ping(ctx):
|
63 |
await ctx.respond(f"{bot.latency*1000:.0f}ms")
|
64 |
|
|
|
149 |
|
150 |
|
151 |
# AI prediction command
|
152 |
+
@bot.hybrid_command(
|
153 |
+
name="diffusion",
|
154 |
+
description="creates an AI generated image"
|
155 |
+
)
|
156 |
+
async def diffusion(ctx, pos_prompt: str="",neg_promt: str = "", img_url= None,improve : Literal["True","False"] = "True",model : models = "absolutereality_v181.safetensors [3d9d4d2b]"):
|
|
|
|
|
|
|
157 |
"""
|
158 |
AI command to generate images
|
159 |
"""
|