not-lain commited on
Commit
71b4e00
·
1 Parent(s): 74e6050

Synced repo using 'sync_with_huggingface' Github Action

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -148,7 +148,13 @@ def run_dffusion(pos_prompt: str,neg_promt: str = "",img_url= "",model="absolute
148
 
149
  # AI prediction command
150
  @bot.slash_command(name='diffusion',description='AI command to generate images')
151
- async def diffusion(ctx:discord.ApplicationContext, pos_prompt: discord.option(discord.SlashCommandOptionType.string, description="The positive prompt for the image generation."), neg_promt: discord.option(discord.SlashCommandOptionType.string, description="The negative prompt for the image generation.", default=""),img_url : discord.option(discord.SlashCommandOptionType.string, description="The input image for the image generation.", default=""),improve : discord.option(discord.SlashCommandOptionType.string,choices = ["True","False"], description="Improve the results", default="False"),model : discord.option(discord.SlashCommandOptionType.string,choices = models, description="The model to use", default="absolutereality_v181.safetensors [3d9d4d2b]")):
 
 
 
 
 
 
152
  """
153
  AI command to generate images
154
  """
 
148
 
149
  # AI prediction command
150
  @bot.slash_command(name='diffusion',description='AI command to generate images')
151
+ async def diffusion(ctx:discord.ApplicationContext,
152
+ pos_prompt: discord.option(discord.SlashCommandOptionType.string,description="The positive prompt for the image generation."),
153
+ neg_promt: discord.option(discord.SlashCommandOptionType.string, description="The negative prompt for the image generation.", default=""),
154
+ img_url : discord.option(discord.SlashCommandOptionType.string, description="The input image for the image generation.", default=""),
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
  """