Spaces:
				
			
			
	
			
			
					
		Running
		
	
	
	
			
			
	
	
	
	
		
		
					
		Running
		
	Handle 'word_perplexity' metric without multiplying by 100
Browse filesModified the logic to avoid multiplying the 'word_perplexity' metric by 100.
Now, the multiplication by 100 is applied conditionally based on the metric
type, preserving the original value for 'word_perplexity'.
    	
        server.py
    CHANGED
    
    | @@ -247,7 +247,7 @@ class LeaderboardServer: | |
| 247 | 
             
                                                visible_metrics_map_word_to_header[task + "_" + metric] = self.TASKS_METADATA[task]["abbreviation"] + " " + metric
         | 
| 248 | 
             
                                                metric_value = data['results'][task].get(metric)
         | 
| 249 | 
             
                                                if metric_value is not None:
         | 
| 250 | 
            -
                                                    local_results[task + "_" + metric] = metric_value * 100
         | 
| 251 | 
             
                                                    break  # Only the first metric of every task
         | 
| 252 |  | 
| 253 |  | 
|  | |
| 247 | 
             
                                                visible_metrics_map_word_to_header[task + "_" + metric] = self.TASKS_METADATA[task]["abbreviation"] + " " + metric
         | 
| 248 | 
             
                                                metric_value = data['results'][task].get(metric)
         | 
| 249 | 
             
                                                if metric_value is not None:
         | 
| 250 | 
            +
                                                    local_results[task + "_" + metric] = metric_value if metric == "word_perplexity" else metric_value * 100
         | 
| 251 | 
             
                                                    break  # Only the first metric of every task
         | 
| 252 |  | 
| 253 |  |