updated test app
Browse files
app.py
CHANGED
|
@@ -1,5 +1,28 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
x = st.slider('Select a value')
|
| 4 |
st.write(x, 'squared is', x * x)
|
| 5 |
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
+
import functools
|
| 4 |
+
import e3x
|
| 5 |
+
from flax import linen as nn
|
| 6 |
+
import jax
|
| 7 |
+
import jax.numpy as jnp
|
| 8 |
+
import matplotlib.pyplot as plt
|
| 9 |
+
import numpy as np
|
| 10 |
+
import optax
|
| 11 |
+
|
| 12 |
+
# Disable future warnings.
|
| 13 |
+
import warnings
|
| 14 |
+
warnings.simplefilter(action='ignore', category=FutureWarning)
|
| 15 |
+
|
| 16 |
+
# Initialize PRNGKey for random number generation.
|
| 17 |
+
key = jax.random.PRNGKey(0)
|
| 18 |
+
|
| 19 |
+
key, rotation_key = jax.random.split(key)
|
| 20 |
+
rotation = e3x.so3.random_rotation(rotation_key)
|
| 21 |
+
|
| 22 |
+
st.write(rotation)
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
|
| 26 |
x = st.slider('Select a value')
|
| 27 |
st.write(x, 'squared is', x * x)
|
| 28 |
|