def compare_file(filepath): m = Ming() song, results = m.compare_file(filepath ) song_results = [] for k, v in results: song_results.append((Song.query.filter(Song.id == k).one() , v)) return render_template('comparison.html', song = song, results = song_results)
def process_file(filepath): m = Ming() m.fingerprint_file(filepath) return redirect(url_for('hello'))