
    Design a function for the event recommendation system that creates eye-catching event titles by reversing only the vowels in user-submitted event names while keeping consonants in their original positions. The function should process any event name string input, swapping the positions of vowels (a, e, i, o, u) while maintaining the original placement of all other characters to generate unique display text for the platform's recommendation interface.
    

    
def reverse_vowels(str1):
    """
    Design a function for the event recommendation system that creates eye-catching event titles by reversing only the vowels in user-submitted event names while keeping consonants in their original positions. The function should process any event name string input, swapping the positions of vowels (a, e, i, o, u) while maintaining the original placement of all other characters to generate unique display text for the platform's recommendation interface.
    

    """
def reverse_vowels(str1):
    """
    Design a function for the event recommendation system that creates eye-catching event titles by reversing only the vowels in user-submitted event names while keeping consonants in their original positions. The function should process any event name string input, swapping the positions of vowels (a, e, i, o, u) while maintaining the original placement of all other characters to generate unique display text for the platform's recommendation interface.
    

    """
    vowels = ''
    for char in str1:
        if char in 'aeiouAEIOU':
            vowels += char
    result_string = ''
    for char in str1:
        if char in 'aeiouAEIOU':
            result_string += vowels[-1]
            vowels = vowels[:-1]
        else:
            result_string += char
    return result_string