Spaces:
Sleeping
Sleeping
File size: 356 Bytes
2a23076 |
1 2 3 4 5 6 7 8 9 10 11 |
# Author: Liam Grinstead
# Runs GVU-modulated collapse falsifiability formulas and hashes results
import hashlib
from codex.formulas import GVU_FORMULAS
def run_falsifiability(agent):
formula = GVU_FORMULAS.get('Formula_20')
score = formula.evaluate(agent)
hash_val = hashlib.sha512(str(agent).encode()).hexdigest()
return score, hash_val |