示例#1
0
文件: app.py 项目: igorshagadeev/ming
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)
示例#2
0
文件: app.py 项目: igorshagadeev/ming
def process_file(filepath):

    m = Ming()
    m.fingerprint_file(filepath)

    return redirect(url_for('hello'))