Spaces:
				
			
			
	
			
			
		Paused
		
	
	
	
			
			
	
	
	
	
		
		
		Paused
		
	Update inferencer.py
Browse files- inferencer.py +0 -9
    	
        inferencer.py
    CHANGED
    
    | @@ -298,13 +298,4 @@ class InterleaveInferencer: | |
| 298 | 
             
                    if not input_list and not kargs.get('force_empty_input', False): # allow forcing for special cases if needed
         | 
| 299 | 
             
                        return
         | 
| 300 |  | 
| 301 | 
            -
                    # Intelligent setting of 'understanding_output' if not provided by caller
         | 
| 302 | 
            -
                    # This helps app.py's simpler calls like inferencer(text=...) to correctly produce text.
         | 
| 303 | 
            -
                    if 'understanding_output' not in kargs:
         | 
| 304 | 
            -
                        if text is not None and image is None: # Primarily text input
         | 
| 305 | 
            -
                            kargs['understanding_output'] = True
         | 
| 306 | 
            -
                        elif image is not None and text is None: # Primarily image input, assume image-to-text (captioning/VQA)
         | 
| 307 | 
            -
                            kargs['understanding_output'] = True
         | 
| 308 | 
            -
                        # If both text and image, or neither, rely on caller or default (False for image gen)
         | 
| 309 | 
            -
             | 
| 310 | 
             
                    yield from self.interleave_inference(input_list, **kargs)
         | 
|  | |
| 298 | 
             
                    if not input_list and not kargs.get('force_empty_input', False): # allow forcing for special cases if needed
         | 
| 299 | 
             
                        return
         | 
| 300 |  | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| 301 | 
             
                    yield from self.interleave_inference(input_list, **kargs)
         | 
