@html.route('/<project_name>/dataset/<type>', methods=['GET'])
def display_sample_images(project_name, type):
    project = Project.query.filter_by(name=project_name).first()
    if (not project):
        return render_template('error.html')
    imglist = QA_api.get_traintest_images(project_name, type)
    return render_template('sampleimages.html', project_name=project_name, imglist=imglist)
@html.route('/<project_name>/dataset/<type>', methods=['GET'])
def display_sample_images(project_name, type):
    project = Project.query.filter_by(name=project_name).first()
    if (not project):
        return render_template('error.html')
    imglist = QA_api.get_traintest_images(project_name, type)
    return render_template('sampleimages.html', project_name=project_name, imglist=imglist)