Synced repo using 'sync_with_huggingface' Github Action
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import threading
|
|
3 |
|
4 |
import discord
|
5 |
import gradio as gr
|
6 |
-
from
|
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="
|
89 |
with_app_command=True,
|
90 |
description="Enter a prompt to generate music!",
|
91 |
)
|
92 |
@app_commands.guilds(MY_GUILD)
|
93 |
-
async def
|
94 |
-
"""
|
95 |
try:
|
96 |
-
await
|
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 |
|