Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -1,5 +1,12 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from PIL import Image
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
file = st.file_uploader('Upload An Image')
|
| 5 |
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from PIL import Image
|
| 3 |
+
import numpy as np
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
modelpath = '20241204-ams-no-env-open_clip_ViT-H-14-378-quickgelu.npz'
|
| 7 |
+
|
| 8 |
+
model = np.load(modelpath)
|
| 9 |
+
st.write(model['walkability_vecs'].shape)
|
| 10 |
|
| 11 |
file = st.file_uploader('Upload An Image')
|
| 12 |
|