From 098ffdd25f1e6081f087d4c5710d27a5888cf3b9 Mon Sep 17 00:00:00 2001 From: pcarlson-foundry-digital Date: Thu, 9 Jan 2025 09:01:53 -0500 Subject: [PATCH] ensure hotkeys match function works --- snp_oracle/predictionnet/utils/huggingface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snp_oracle/predictionnet/utils/huggingface.py b/snp_oracle/predictionnet/utils/huggingface.py index c7b280d5..c992368d 100644 --- a/snp_oracle/predictionnet/utils/huggingface.py +++ b/snp_oracle/predictionnet/utils/huggingface.py @@ -49,10 +49,10 @@ def update_collection(self, responses: List[Challenge]) -> None: def hotkeys_match(self, synapse, hotkey) -> bool: if synapse.model is None: return False - model_hotkey = synapse.model.split(".")[0] + model_hotkey = synapse.model.split("/")[0] return hotkey == model_hotkey def get_model_timestamp(self, repo_id, model): - commits = self.api.list_repo_commits(repo_id=f"{repo_id}/{model}", repo_type="model") + commits = self.api.list_repo_commits(repo_id=f"{repo_id}", repo_type="model") initial_commit = commits[-1] return initial_commit.created_at