Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,12 +41,15 @@ ax.set_ylim((0, 1))
|
|
41 |
|
42 |
|
43 |
kl = tfd.kl_divergence(q, p)
|
44 |
-
st.latex(f"D_{{KL}}(q||p) is : {kl:0.2f}")
|
45 |
|
46 |
-
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
-
##ax.hist(arr, bins=20)
|
49 |
-
#sns.despine()
|
50 |
st.pyplot(fig)
|
51 |
hide_streamlit_style = """
|
52 |
<style>
|
|
|
41 |
|
42 |
|
43 |
kl = tfd.kl_divergence(q, p)
|
44 |
+
st.latex(f"D_{{KL}}(q||p) \\text{{ is : }}{kl:0.2f}")
|
45 |
|
46 |
+
ax.spines['right'].set_visible(False)
|
47 |
+
ax.spines['top'].set_visible(False)
|
48 |
+
|
49 |
+
# Only show ticks on the left and bottom spines
|
50 |
+
ax.yaxis.set_ticks_position('left')
|
51 |
+
ax.xaxis.set_ticks_position('bottom')
|
52 |
|
|
|
|
|
53 |
st.pyplot(fig)
|
54 |
hide_streamlit_style = """
|
55 |
<style>
|