Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def generate_music_tensors(descriptions, duration_seconds: int):
|
|
18 |
|
19 |
model.set_generation_params(
|
20 |
use_sampling=True,
|
21 |
-
top_k=
|
22 |
duration=duration_seconds
|
23 |
)
|
24 |
|
@@ -71,9 +71,11 @@ def main():
|
|
71 |
selected_genre = st.selectbox("Select Genre", genres)
|
72 |
|
73 |
st.subheader("2. Select time duration (In Minutes)")
|
|
|
|
|
74 |
|
75 |
-
|
76 |
-
|
77 |
|
78 |
st.title("""🎵 Song Lab AI 🎵""")
|
79 |
st.text('')
|
|
|
18 |
|
19 |
model.set_generation_params(
|
20 |
use_sampling=True,
|
21 |
+
top_k=256,
|
22 |
duration=duration_seconds
|
23 |
)
|
24 |
|
|
|
71 |
selected_genre = st.selectbox("Select Genre", genres)
|
72 |
|
73 |
st.subheader("2. Select time duration (In Minutes)")
|
74 |
+
# Adjust the time slider for selecting duration in minutes
|
75 |
+
time_slider = st.slider("Select time duration (In Minutes)", 1, 5, 1)
|
76 |
|
77 |
+
# Convert the selected minutes to seconds
|
78 |
+
duration_seconds = time_slider * 60
|
79 |
|
80 |
st.title("""🎵 Song Lab AI 🎵""")
|
81 |
st.text('')
|