Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -154,7 +154,8 @@ def main():
|
|
154 |
"Elige instrumento a generar las melodias",
|
155 |
("Piano", "Chromatic Percussion", "Organ", "Guitar", "Bass", "Strings", "Ensemble", "Brass",
|
156 |
"Reed", "Pipe", "Synth Lead", "Synth Pad", "Synth Effects", "Ethnic", "Percussive", "Sound Effects"))
|
157 |
-
|
|
|
158 |
|
159 |
if uploaded_file and option is not None:
|
160 |
|
@@ -234,7 +235,7 @@ def main():
|
|
234 |
seq_length = 25
|
235 |
vocab_size = 128
|
236 |
temperature = 2.0
|
237 |
-
|
238 |
sample_notes = np.stack([raw_notes[key] for key in key_order], axis=1)
|
239 |
input_notes = (sample_notes[:seq_length] / np.array([vocab_size, 1, 1]))
|
240 |
generated_notes = []
|
|
|
154 |
"Elige instrumento a generar las melodias",
|
155 |
("Piano", "Chromatic Percussion", "Organ", "Guitar", "Bass", "Strings", "Ensemble", "Brass",
|
156 |
"Reed", "Pipe", "Synth Lead", "Synth Pad", "Synth Effects", "Ethnic", "Percussive", "Sound Effects"))
|
157 |
+
|
158 |
+
num_predictions = st.number_input("Ingrese el número de notas:", min_value=100, max_value=150, value=120, step=1)
|
159 |
|
160 |
if uploaded_file and option is not None:
|
161 |
|
|
|
235 |
seq_length = 25
|
236 |
vocab_size = 128
|
237 |
temperature = 2.0
|
238 |
+
|
239 |
sample_notes = np.stack([raw_notes[key] for key in key_order], axis=1)
|
240 |
input_notes = (sample_notes[:seq_length] / np.array([vocab_size, 1, 1]))
|
241 |
generated_notes = []
|