Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Fix model ID in history
Browse files- background_task.py +2 -2
    	
        background_task.py
    CHANGED
    
    | @@ -99,8 +99,8 @@ class Matchmaking: | |
| 99 | 
             
                        result = row["result"]
         | 
| 100 | 
             
                        if model1 is not None or model2 is not None:
         | 
| 101 | 
             
                            self.compute_elo(model1, model2, row["result"])
         | 
| 102 | 
            -
                            self.matches["model1"].append(model1.name)
         | 
| 103 | 
            -
                            self.matches["model2"].append(model2.name)
         | 
| 104 | 
             
                            self.matches["result"].append(result)
         | 
| 105 | 
             
                            self.matches["timestamp"].append(row["timestamp"])
         | 
| 106 | 
             
                    data_dict = {"model1": [], "model2": [], "timestamp": [], "result": []}
         | 
|  | |
| 99 | 
             
                        result = row["result"]
         | 
| 100 | 
             
                        if model1 is not None or model2 is not None:
         | 
| 101 | 
             
                            self.compute_elo(model1, model2, row["result"])
         | 
| 102 | 
            +
                            self.matches["model1"].append(model1.author + "/" + model1.name)
         | 
| 103 | 
            +
                            self.matches["model2"].append(model2.author + "/" + model2.name)
         | 
| 104 | 
             
                            self.matches["result"].append(result)
         | 
| 105 | 
             
                            self.matches["timestamp"].append(row["timestamp"])
         | 
| 106 | 
             
                    data_dict = {"model1": [], "model2": [], "timestamp": [], "result": []}
         | 

