Spaces:
Runtime error
Runtime error
sandrocalzada
commited on
Commit
·
8006c7e
1
Parent(s):
bbb8961
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ app.prepare(ctx_id=0, det_size=(640, 640))
|
|
13 |
swapper = insightface.model_zoo.get_model(os.path.join(os.getcwd(), 'inswapper_128.onnx'), download=False)
|
14 |
|
15 |
# Load pickle file once and keep it in memory
|
16 |
-
@st.
|
17 |
def load_data_images():
|
18 |
with open(os.path.join(os.getcwd(), 'data_images.pkl'), 'rb') as file:
|
19 |
return pickle.load(file)
|
|
|
13 |
swapper = insightface.model_zoo.get_model(os.path.join(os.getcwd(), 'inswapper_128.onnx'), download=False)
|
14 |
|
15 |
# Load pickle file once and keep it in memory
|
16 |
+
@st.cache_data
|
17 |
def load_data_images():
|
18 |
with open(os.path.join(os.getcwd(), 'data_images.pkl'), 'rb') as file:
|
19 |
return pickle.load(file)
|