PrakhAI commited on
Commit
54d5b98
·
1 Parent(s): b1c90f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -4,10 +4,8 @@ from flax.serialization import msgpack_restore
4
 
5
  fs = HfFileSystem()
6
 
7
- print(fs.ls("PrakhAI/HelloWorld", detail=False))
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)