PrakhAI's picture
Update app.py
3183b95
raw
history blame
239 Bytes
import streamlit as st
from flax.serialization import msgpack_restore
with open("PrakhAI/HelloWorld/checkpoint.msgpack", "rb") as f:
model = msgpack_restore(f.read())
x = st.slider('Select a value')
st.write(x, 'squared is', x * x)