def METHOD_NAME(n_clicks, name, source, model):
    """
    Callback for when the stream form is submitted
    """
    if n_clicks == 0:
        raise PreventUpdate
    print(f"adding stream {name} from source {source} with model {model}")
    Server.request('POST', '/streams', json={'name': name, 'source': source, 'models': model})
    raise PreventUpdate