Spaces:
Runtime error
Runtime error
Commit
•
06f6a07
1
Parent(s):
91a1e69
Update app.py
Browse files
app.py
CHANGED
@@ -33,6 +33,13 @@ def generate_audio(prompt, negative_prompt, guidance_scale=3, audio_length_in_s=
|
|
33 |
return (sampling_rate, audio_values)
|
34 |
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
gr.Interface(
|
37 |
fn=generate_audio,
|
38 |
inputs=[
|
@@ -45,4 +52,5 @@ gr.Interface(
|
|
45 |
outputs=[
|
46 |
gr.Audio(label="Generated Music", type="numpy"),
|
47 |
],
|
|
|
48 |
).launch()
|
|
|
33 |
return (sampling_rate, audio_values)
|
34 |
|
35 |
|
36 |
+
EXAMPLES = [
|
37 |
+
["80s pop track with synth and instrumentals", "drums", 3, 15, 0],
|
38 |
+
["80s pop track with synth and instrumentals", "drums", 5, 15, 0],
|
39 |
+
["80s pop track with synth and instrumentals", "drums", 7, 15, 0],
|
40 |
+
["80s pop track with synth and instrumentals", "drums", 10, 15, 0],
|
41 |
+
]
|
42 |
+
|
43 |
gr.Interface(
|
44 |
fn=generate_audio,
|
45 |
inputs=[
|
|
|
52 |
outputs=[
|
53 |
gr.Audio(label="Generated Music", type="numpy"),
|
54 |
],
|
55 |
+
examples=EXAMPLES,
|
56 |
).launch()
|