From 202928f7e5c637669b87ccb65c47b5031df1b654 Mon Sep 17 00:00:00 2001 From: Thomas Matlak Date: Thu, 4 May 2017 22:58:17 -0400 Subject: [PATCH] removed predictmood function --- server/predict.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/server/predict.py b/server/predict.py index f7a2789..81f16cc 100644 --- a/server/predict.py +++ b/server/predict.py @@ -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) + \ No newline at end of file