Beispiel #1
0
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)
Beispiel #2
0
def process_file(filepath):

    m = Ming()
    m.fingerprint_file(filepath)

    return redirect(url_for('hello'))