Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
7 |
|
|
|
8 |
|
9 |
-
|
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)
|