Nipun commited on
Commit
1122469
1 Parent(s): 8795d4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -4,9 +4,11 @@ import matplotlib.pyplot as plt
4
  import numpy as np
5
  import matplotlib.pyplot as plt
6
  import tensorflow as tf
 
7
  import tensorflow_probability as tfp
8
  import pandas as pd
9
  tfd = tfp.distributions
 
10
 
11
  st.title("1 dimensional normal distribution")
12
  mean = st.slider('Mean', -5, 5, 0)
@@ -14,8 +16,13 @@ std = st.slider('Scale', 0, 5, 1)
14
 
15
  p = tfd.Normal(2, 1)
16
 
 
 
 
 
 
17
 
18
- st.latex(f"\mu={mean}"+"\n\n"+f"\sigma={std}")
19
 
20
 
21
  q = tfd.Normal(mean, std)
 
4
  import numpy as np
5
  import matplotlib.pyplot as plt
6
  import tensorflow as tf
7
+ import seaborn as sns
8
  import tensorflow_probability as tfp
9
  import pandas as pd
10
  tfd = tfp.distributions
11
+ tfl = tfp.layers
12
 
13
  st.title("1 dimensional normal distribution")
14
  mean = st.slider('Mean', -5, 5, 0)
 
16
 
17
  p = tfd.Normal(2, 1)
18
 
19
+ z = f"""\\begin{{array}}{{cc}}
20
+ \mu & {mean} \\\\
21
+ \sigma & {std}
22
+ \\end{{array}}
23
+ """
24
 
25
+ st.latex(z)
26
 
27
 
28
  q = tfd.Normal(mean, std)