Spaces:
				
			
			
	
			
			
					
		Running
		
			on 
			
			CPU Upgrade
	
	
	
			
			
	
	
	
	
		
		
					
		Running
		
			on 
			
			CPU Upgrade
	fix model submission name : adding weight type
Browse files
    	
        backend/app/services/models.py
    CHANGED
    
    | @@ -556,7 +556,7 @@ class ModelService(HuggingFaceService): | |
| 556 | 
             
                        # Construct the path in the dataset
         | 
| 557 | 
             
                        org_or_user = model_data["model_id"].split("/")[0] if "/" in model_data["model_id"] else ""
         | 
| 558 | 
             
                        model_path = model_data["model_id"].split("/")[-1]
         | 
| 559 | 
            -
                        relative_path = f"{org_or_user}/{model_path}_eval_request_False_{model_data['precision']}.json"
         | 
| 560 |  | 
| 561 | 
             
                        # Create a temporary file with the request
         | 
| 562 | 
             
                        with tempfile.NamedTemporaryFile(mode='w', suffix='.json', delete=False) as temp_file:
         | 
|  | |
| 556 | 
             
                        # Construct the path in the dataset
         | 
| 557 | 
             
                        org_or_user = model_data["model_id"].split("/")[0] if "/" in model_data["model_id"] else ""
         | 
| 558 | 
             
                        model_path = model_data["model_id"].split("/")[-1]
         | 
| 559 | 
            +
                        relative_path = f"{org_or_user}/{model_path}_eval_request_False_{model_data['precision']}_{model_data['weight_type']}.json"
         | 
| 560 |  | 
| 561 | 
             
                        # Create a temporary file with the request
         | 
| 562 | 
             
                        with tempfile.NamedTemporaryFile(mode='w', suffix='.json', delete=False) as temp_file:
         | 

