Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	| import json | |
| def parse_challenge_result_dict(challenge_name: str, challenge_result_dict: dict) -> float: | |
| """ | |
| Parse the challenge result dictionary and return the score. | |
| Currently only reads the score stored in the dict. Will be updated to include score verification. | |
| """ | |
| score_fields = ['score', 'accuracy'] | |
| for field in score_fields: | |
| if field in challenge_result_dict: | |
| return challenge_result_dict[field] | |
| raise ValueError(f"Could not parse the score for {challenge_name}.") | 
