Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -37,5 +37,11 @@ def get_drummer_output(prompt, openai_api_key):
|
|
37 |
audio = np.array(audio.get_array_of_samples(), dtype=np.float32)
|
38 |
return (96000, audio)
|
39 |
|
40 |
-
iface = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
iface.launch()
|
|
|
37 |
audio = np.array(audio.get_array_of_samples(), dtype=np.float32)
|
38 |
return (96000, audio)
|
39 |
|
40 |
+
iface = gr.Interface(
|
41 |
+
fn=get_drummer_output,
|
42 |
+
inputs=["text", "text"],
|
43 |
+
outputs="audio",
|
44 |
+
title='Auto-drummer',
|
45 |
+
description='Stable Diffusion for drum beats. Type in a genre and some descriptors to the prompt box, enter your OpenAI API key, and get a drum beat in that genre'
|
46 |
+
)
|
47 |
iface.launch()
|