Spaces:
				
			
			
	
			
			
					
		Running
		
	
	
	
			
			
	
	
	
	
		
		
					
		Running
		
	record submitted time
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -240,6 +240,8 @@ def add_new_eval( 
     | 
|
| 240 | 
         
             
                private: bool,
         
     | 
| 241 | 
         
             
                is_delta_weight: bool,
         
     | 
| 242 | 
         
             
            ):
         
     | 
| 
         | 
|
| 
         | 
|
| 243 | 
         
             
                # check the model actually exists before adding the eval
         
     | 
| 244 | 
         
             
                if revision == "":
         
     | 
| 245 | 
         
             
                    revision = "main"
         
     | 
| 
         @@ -262,6 +264,7 @@ def add_new_eval( 
     | 
|
| 262 | 
         
             
                    "8bit_eval": is_8_bit_eval,
         
     | 
| 263 | 
         
             
                    "is_delta_weight": is_delta_weight,
         
     | 
| 264 | 
         
             
                    "status": "PENDING",
         
     | 
| 
         | 
|
| 265 | 
         
             
                }
         
     | 
| 266 | 
         | 
| 267 | 
         
             
                user_name = ""
         
     | 
| 
         | 
|
| 240 | 
         
             
                private: bool,
         
     | 
| 241 | 
         
             
                is_delta_weight: bool,
         
     | 
| 242 | 
         
             
            ):
         
     | 
| 243 | 
         
            +
                current_time = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
         
     | 
| 244 | 
         
            +
             
     | 
| 245 | 
         
             
                # check the model actually exists before adding the eval
         
     | 
| 246 | 
         
             
                if revision == "":
         
     | 
| 247 | 
         
             
                    revision = "main"
         
     | 
| 
         | 
|
| 264 | 
         
             
                    "8bit_eval": is_8_bit_eval,
         
     | 
| 265 | 
         
             
                    "is_delta_weight": is_delta_weight,
         
     | 
| 266 | 
         
             
                    "status": "PENDING",
         
     | 
| 267 | 
         
            +
                    "submitted_time": current_time,
         
     | 
| 268 | 
         
             
                }
         
     | 
| 269 | 
         | 
| 270 | 
         
             
                user_name = ""
         
     |