Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -84,11 +84,11 @@ def process_image(prompt: str, img: Image.Image) -> str: 
     | 
|
| 84 | 
         
             
                )[0]
         
     | 
| 85 | 
         
             
                return output_text
         
     | 
| 86 | 
         | 
| 
         | 
|
| 87 | 
         
             
            # Initialize model + pipeline
         
     | 
| 88 | 
         
             
            disable_torch_init()
         
     | 
| 89 | 
         
            -
            model_path = os.path.expanduser(sys.argv[1])
         
     | 
| 90 | 
         
             
            tokenizer, multi_model, _ = load_pretrained_model(
         
     | 
| 91 | 
         
            -
                model_path, None, get_model_name_from_path( 
     | 
| 92 | 
         
             
            )
         
     | 
| 93 | 
         
             
            pipe = DiffusionPipeline.from_pretrained(
         
     | 
| 94 | 
         
             
                diffusion_path,
         
     | 
| 
         | 
|
| 84 | 
         
             
                )[0]
         
     | 
| 85 | 
         
             
                return output_text
         
     | 
| 86 | 
         | 
| 87 | 
         
            +
            print("Diffusion path: ", diffusion_path)
         
     | 
| 88 | 
         
             
            # Initialize model + pipeline
         
     | 
| 89 | 
         
             
            disable_torch_init()
         
     | 
| 
         | 
|
| 90 | 
         
             
            tokenizer, multi_model, _ = load_pretrained_model(
         
     | 
| 91 | 
         
            +
                model_path, None, get_model_name_from_path(diffusion_path)
         
     | 
| 92 | 
         
             
            )
         
     | 
| 93 | 
         
             
            pipe = DiffusionPipeline.from_pretrained(
         
     | 
| 94 | 
         
             
                diffusion_path,
         
     |