lunarflu HF Staff commited on
Commit
202a93d
·
1 Parent(s): 2a3915b

Synced repo using 'sync_with_huggingface' Github Action

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -3,7 +3,7 @@ import threading
3
 
4
  import discord
5
  import gradio as gr
6
- from audiodlm2 import audiodlm2_create
7
  from deepfloydif import deepfloydif_stage_1, deepfloydif_stage_2_react_check
8
  from discord import app_commands
9
  from discord.ext import commands
@@ -85,15 +85,15 @@ async def musicgen(ctx, prompt: str):
85
 
86
 
87
  @client.hybrid_command(
88
- name="audiodlm2",
89
  with_app_command=True,
90
  description="Enter a prompt to generate music!",
91
  )
92
  @app_commands.guilds(MY_GUILD)
93
- async def audiodlm2(ctx, prompt: str):
94
- """Audiodlm2 generation"""
95
  try:
96
- await audiodlm2_create(ctx, prompt)
97
  except Exception as e:
98
  print(f"Error: (app.py){e}")
99
 
 
3
 
4
  import discord
5
  import gradio as gr
6
+ from audioldm2 import audioldm2_create
7
  from deepfloydif import deepfloydif_stage_1, deepfloydif_stage_2_react_check
8
  from discord import app_commands
9
  from discord.ext import commands
 
85
 
86
 
87
  @client.hybrid_command(
88
+ name="audioldm2",
89
  with_app_command=True,
90
  description="Enter a prompt to generate music!",
91
  )
92
  @app_commands.guilds(MY_GUILD)
93
+ async def audioldm2(ctx, prompt: str):
94
+ """Audioldm2 generation"""
95
  try:
96
+ await audioldm2_create(ctx, prompt)
97
  except Exception as e:
98
  print(f"Error: (app.py){e}")
99