Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from flax.serialization import msgpack_restore
|
| 3 |
|
| 4 |
-
|
|
|
|
| 5 |
|
| 6 |
x = st.slider('Select a value')
|
| 7 |
st.write(x, 'squared is', x * x)
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from flax.serialization import msgpack_restore
|
| 3 |
|
| 4 |
+
with open("PrakhAI/HelloWorld/checkpoint.msgpack", "rb") as f:
|
| 5 |
+
model = msgpack_restore(f.read())
|
| 6 |
|
| 7 |
x = st.slider('Select a value')
|
| 8 |
st.write(x, 'squared is', x * x)
|