PrakhAI commited on
Commit
a52bf7f
·
1 Parent(s): 8298279

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -8
app.py CHANGED
@@ -1,17 +1,13 @@
1
  import streamlit as st
2
  from huggingface_hub import HfFileSystem
3
  from flax.serialization import msgpack_restore
4
- import os
5
 
6
- hf_key = os.environ['HF_KEY']
7
 
 
8
 
9
- fs = HfFileSystem(token=hf_key)
10
-
11
- print(fs.ls("models"))
12
-
13
- with open("models/PrakhAI/HelloWorld/checkpoint.msgpack", "rb") as f:
14
- model = msgpack_restore(f.read())
15
 
16
  x = st.slider('Select a value')
17
  st.write(x, 'squared is', x * x)
 
1
  import streamlit as st
2
  from huggingface_hub import HfFileSystem
3
  from flax.serialization import msgpack_restore
 
4
 
5
+ fs = HfFileSystem()
6
 
7
+ print(fs.ls("datasets"))
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)