Spaces:
Sleeping
Sleeping
File size: 315 Bytes
837c6d9 | 1 2 3 4 5 6 7 8 9 10 11 | import streamlit as st
import torch
NORMAL = {
"params": lambda: {
"mu": st.sidebar.slider("Mean (μ)", -10.0, 10.0, 0.0),
"sigma": st.sidebar.slider("Standard Deviation (σ)", 0.1, 10.0, 1.0),
},
"dist": lambda p: torch.distributions.Normal(p["mu"], p["sigma"]),
"support": None,
} |