Spaces:
Sleeping

Kur2025 commited on
Commit
3f704bb
·
verified ·
1 Parent(s): 068a8de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -16
app.py CHANGED
@@ -1,17 +1,13 @@
1
- import gradio as gr
2
-
3
- def trigger_musicgen(voice_url, lyrics, mood):
4
- print("🎤 Voice URL:", voice_url)
5
- print("📝 Lyrics:", lyrics[:100])
6
- print("🎼 Mood:", mood)
7
- return "✅ Trigger received"
8
-
9
- demo = gr.Interface(
10
- fn=trigger_musicgen,
11
- inputs=["text", "text", "text"],
12
- outputs="text",
13
- title="AI Music Trigger",
14
- description="Paste voice URL, lyrics, and mood to trigger music generation"
15
- )
16
-
17
  demo.launch()
 
1
+ import gradio as gr
2
+
3
+ def trigger_musicgen(...): # match your inputs
4
+ ...
5
+ return "✅ Trigger received"
6
+
7
+ demo = gr.Interface(
8
+ fn=trigger_musicgen,
9
+ inputs=[...], # match your input fields
10
+ outputs="text"
11
+ )
12
+
 
 
 
 
13
  demo.launch()