File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -381,7 +381,7 @@ def test_inference_batch_single_identical(self):
381381        ]
382382
383383        self ._test_inference_batch_single_identical (
384-             additional_params_copy_to_batched_inputs = additional_params_copy_to_batched_inputs , expected_max_diff = 5e -3
384+             additional_params_copy_to_batched_inputs = additional_params_copy_to_batched_inputs , expected_max_diff = 9.8e -3
385385        )
386386
387387    def  test_inference_batch_consistent (self ):
Original file line number Diff line number Diff line change 1717
1818import  requests 
1919
20- from  ..src .diffusers .utils .constants  import  DIFFUSERS_REQUEST_TIMEOUT 
21- 
2220
2321# Configuration 
2422LIBRARY_NAME  =  "diffusers" 
2826
2927def  check_pypi_for_latest_release (library_name ):
3028    """Check PyPI for the latest release of the library.""" 
31-     response  =  requests .get (f"https://pypi.org/pypi/{ library_name }  , timeout = DIFFUSERS_REQUEST_TIMEOUT )
29+     response  =  requests .get (f"https://pypi.org/pypi/{ library_name }  , timeout = 60 )
3230    if  response .status_code  ==  200 :
3331        data  =  response .json ()
3432        return  data ["info" ]["version" ]
@@ -40,7 +38,7 @@ def check_pypi_for_latest_release(library_name):
4038def  get_github_release_info (github_repo ):
4139    """Fetch the latest release info from GitHub.""" 
4240    url  =  f"https://api.github.com/repos/{ github_repo }  
43-     response  =  requests .get (url , timeout = DIFFUSERS_REQUEST_TIMEOUT )
41+     response  =  requests .get (url , timeout = 60 )
4442
4543    if  response .status_code  ==  200 :
4644        data  =  response .json ()
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments