PrakhAI commited on
Commit
3183b95
·
1 Parent(s): 5e89e74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,7 +1,8 @@
1
  import streamlit as st
2
  from flax.serialization import msgpack_restore
3
 
4
- msgpack_restore("PrakhAI/HelloWorld/checkpoint.msgpack")
 
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)