not-lain commited on
Commit
7d3776b
·
1 Parent(s): fa43b29

Synced repo using 'sync_with_huggingface' Github Action

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -151,13 +151,10 @@ def run_dffusion(pos_prompt: str,neg_promt: str = "",img_url= None,model="absolu
151
 
152
 
153
  # AI prediction command
154
- @bot.hybrid_command(
155
- name="diffusion",
156
- description="creates an AI generated image"
157
- )
158
  async def diffusion(ctx, pos_prompt: str="",neg_promt: str = "", img_url= None,improve : Literal["True","False"] = "False",model : models = "absolutereality_v181.safetensors [3d9d4d2b]"):
159
  """
160
- AI command to create the thread and ask the AI
161
  """
162
  # if channel name is == channel_name
163
  try:
 
151
 
152
 
153
  # AI prediction command
154
+ @bot.slash_command(name='diffusion',description='AI command to generate images',)
 
 
 
155
  async def diffusion(ctx, pos_prompt: str="",neg_promt: str = "", img_url= None,improve : Literal["True","False"] = "False",model : models = "absolutereality_v181.safetensors [3d9d4d2b]"):
156
  """
157
+ AI command to generate images
158
  """
159
  # if channel name is == channel_name
160
  try: