ageraustine commited on
Commit
8a74b08
1 Parent(s): ade613c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -63,7 +63,8 @@ def main():
63
 
64
  # Prepare the payload based on presence/absence of uploaded audio
65
  payload = {
66
- "inputs": f"{prompt} {selected_genre} {bpm} bpm", # Combine prompt and genre
 
67
  }
68
  if uploaded_audio is not None:
69
  payload["audio_data"] = uploaded_audio.tolist() # Convert to list for JSON
 
63
 
64
  # Prepare the payload based on presence/absence of uploaded audio
65
  payload = {
66
+ "inputs": f"{prompt} {selected_genre} {bpm} bpm",
67
+ "duration": int(duration)
68
  }
69
  if uploaded_audio is not None:
70
  payload["audio_data"] = uploaded_audio.tolist() # Convert to list for JSON