def get_gt_web(best_matches, query_gt_dict):
    """
    Given best matches and query ground truth, return list of ground truths corresponding to best_matches (for deployment use)

    Args:
        best_matches    : list of best matching files
        query_gt_dict   : dictionary indicating the positive and negative examples for the query

    Returns:
        list of ground truths corresponding to best_matches
    """
    # Create python list to store preds
    preds = []

    # Iterate through the best matches and find predictions
    for i, pic in enumerate(best_matches): 
        img_name = "{}".format(pic.split("/")[-1])
        if img_name in query_gt_dict['positive']:
            preds.append(1)
        elif img_name in query_gt_dict['negative']:
            preds.append(-1)
        else:
            preds.append(0)
        
    return preds