rdave88 commited on
Commit
132e707
·
1 Parent(s): bc49a14

Add application file

Browse files
Files changed (1) hide show
  1. app.py +19 -0
app.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import matplotlib.pyplot as plt
3
+ from mpl_toolkits.mplot3d import Axes3D
4
+ import numpy as np
5
+
6
+ st.title("3D Hidden States Visualization")
7
+
8
+ # Example: simple spiral
9
+ t = np.linspace(0, 20, 500)
10
+ x = np.sin(t)
11
+ y = np.cos(t)
12
+ z = t
13
+
14
+ fig = plt.figure()
15
+ ax = fig.add_subplot(111, projection='3d')
16
+ ax.plot(x, y, z, label="3D Spiral")
17
+ ax.legend()
18
+
19
+ st.pyplot(fig)