Write a Python program to filter out values from a given list based on a certain condition.
[7, 6, 5, 4, 3], condition: x > 5
def filter_values(lst, condition):
    filtered_list = []
    for x in lst:
        if eval(condition):
            filtered_list.append(x)
    return filtered_list