добавит процент крутости у модели

This commit is contained in:
huker667 committed 2026-09-16 00:35:41 +03:00
1 parent b0541faa3d
commit 8812393f9f
4 files changed
+28 -4

No files matched your search

+11
View File
@@ -32,5 +32,16 @@ def get_trust(m: list):
return models_trust.get(m[0], 80.0), models_trust.get(trust_key(m), 60.0)
def get_display_trust(m: list):
base_key = m[0] + '*' + m[1]
values = []
for key, val in models_trust.items():
if key == base_key or key.startswith(base_key + '*'):
values.append(val)
if not values:
return 60.0
return sum(values) / len(values)
def set_trust(m: str, trust: float):
models_trust[m] = trust