Spaces:
Runtime error
Runtime error
SusiePHaltmann
commited on
Commit
·
dc69ad9
1
Parent(s):
da1349b
Update app.py
Browse files
app.py
CHANGED
@@ -95,7 +95,7 @@ def main():
|
|
95 |
resize_factor = 512 / max_dim
|
96 |
|
97 |
width, height = int(width * resize_factor), int(height * resize_factor)
|
98 |
-
|
99 |
def load_image(image):
|
100 |
image = np.array(Image.open(image))
|
101 |
return image
|
|
|
95 |
resize_factor = 512 / max_dim
|
96 |
|
97 |
width, height = int(width * resize_factor), int(height * resize_factor)
|
98 |
+
@st.cache
|
99 |
def load_image(image):
|
100 |
image = np.array(Image.open(image))
|
101 |
return image
|