removed predictmood function

This commit is contained in:
Thomas Matlak 2017-05-04 22:58:17 -04:00
parent 4d1c53dc91
commit 202928f7e5

View File

@ -68,16 +68,9 @@ def generate_midi(midi_data, total_seconds=10):
# generate the output sequence
generated_sequence = generator.generate(primer_sequence, generator_options)
output = tempfile.NamedTemporaryFile()
magenta.music.midi_io.sequence_proto_to_midi_file(generated_sequence, output.name)
output.seek(0)
return output
def predictmood(midi_data):
'''
Attempt to predict the mood of the music in the midi file
'''
return predictmood(midi_data)