Spaces:
Sleeping
Sleeping
Commit
·
bdea4ee
1
Parent(s):
efbfa94
Set cache
Browse files- processing.py +1 -0
processing.py
CHANGED
@@ -71,6 +71,7 @@ def get_info(space_name: SpaceInfo) -> SpaceData | None:
|
|
71 |
dark_file = str(screen_shot_dir / Path(img_id + "_dark.jpg"))
|
72 |
if status == "RUNNING":
|
73 |
if not prev_data[space_info.id].get("sha") or (prev_data[space_info.id]['sha'] != space_info.sha):
|
|
|
74 |
with lock:
|
75 |
get_screen_shot(
|
76 |
f"https://{space_info.subdomain}.hf.space?__theme=light", 3, light_file
|
|
|
71 |
dark_file = str(screen_shot_dir / Path(img_id + "_dark.jpg"))
|
72 |
if status == "RUNNING":
|
73 |
if not prev_data[space_info.id].get("sha") or (prev_data[space_info.id]['sha'] != space_info.sha):
|
74 |
+
prev_data[space_info.id]['sha'] = space_info.sha
|
75 |
with lock:
|
76 |
get_screen_shot(
|
77 |
f"https://{space_info.subdomain}.hf.space?__theme=light", 3, light_file
|