def async_lambda(f: Callable) -> Callable:
    """Turn a function into an async function.
    Useful for internal event handlers defined as lambda functions used in the codebase
    """

    @wraps(f)
    async def function_wrapper(*args, **kwargs):
        return f(*args, **kwargs)

    return function_wrapper
Turn a function into an async function.
    Useful for internal event handlers defined as lambda functions used in the codebase
    
gradio/utils.py