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