Streamlit crashes without error when running umap.fit_transform

Running streamlit locally. I have simple form with a numeric input that ultimately calls this method:

reduced_embeddings = umap.UMAP(
    n_neighbors=15,
    n_components=20,
    min_dist=0.5,
    metric="cosine"
).fit_transform(data["vector"].tolist())

the call to fit_transform results in streamlit crashing every single time. I can run this code in regular python just fine. No errors are outputted, just a complete kernel crash.

Running streamlit 1.38.0 and python 3.12.4

Any ideas?