Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -110,11 +110,11 @@ def get_audioldm(prompt):
|
|
110 |
return audio_result
|
111 |
|
112 |
def get_riffusion(prompt):
|
113 |
-
client = Client("https://fffiloni-spectrogram-to-music.hf.space
|
114 |
result = client.predict(
|
115 |
prompt, # str in 'Musical prompt' Textbox component
|
116 |
"", # str in 'Negative prompt' Textbox component
|
117 |
-
|
118 |
10, # float (numeric value between 5 and 10) in 'Duration in seconds' Slider component
|
119 |
api_name="/predict"
|
120 |
)
|
|
|
110 |
return audio_result
|
111 |
|
112 |
def get_riffusion(prompt):
|
113 |
+
client = Client("https://fffiloni-spectrogram-to-music.hf.space/")
|
114 |
result = client.predict(
|
115 |
prompt, # str in 'Musical prompt' Textbox component
|
116 |
"", # str in 'Negative prompt' Textbox component
|
117 |
+
None, # filepath in 'parameter_4' Audio component
|
118 |
10, # float (numeric value between 5 and 10) in 'Duration in seconds' Slider component
|
119 |
api_name="/predict"
|
120 |
)
|