Skip to content

Commit

Permalink
fix: remove unsafe param for webcall
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin authored Apr 20, 2024
1 parent 13ddfa0 commit 2590ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model-stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def get_num_lines(self, file_path: str) -> int:
def download_stats(self, period: int, model_type: str = "img") -> None:
self.unused_models = [] # not relevant

req = requests.get(f"https://stablehorde.net/api/v2/stats/{model_type}/models", verify=False)
req = requests.get(f"https://stablehorde.net/api/v2/stats/{model_type}/models")
self.used_models = req.json()[period] if req.ok else {}

def parse_log(self) -> None:
Expand Down

0 comments on commit 2590ebd

Please sign in to comment.