Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -25,7 +25,7 @@ model = AutoModelForTokenClassification.from_pretrained("Theivaprakasham/layoutl 
     | 
|
| 25 | 
         | 
| 26 | 
         
             
            # load image example
         
     | 
| 27 | 
         
             
            dataset = load_dataset("darentang/generated", split="test")
         
     | 
| 28 | 
         
            -
            Image.open(" 
     | 
| 29 | 
         
             
            Image.open(dataset[1]["image_path"]).convert("RGB").save("example2.png")
         
     | 
| 30 | 
         
             
            Image.open(dataset[0]["image_path"]).convert("RGB").save("example3.png")
         
     | 
| 31 | 
         
             
            # define id2label, label2color
         
     | 
| 
         | 
|
| 25 | 
         | 
| 26 | 
         
             
            # load image example
         
     | 
| 27 | 
         
             
            dataset = load_dataset("darentang/generated", split="test")
         
     | 
| 28 | 
         
            +
            Image.open(dataset[2]["image_path"]).convert("RGB").save("example1.png")
         
     | 
| 29 | 
         
             
            Image.open(dataset[1]["image_path"]).convert("RGB").save("example2.png")
         
     | 
| 30 | 
         
             
            Image.open(dataset[0]["image_path"]).convert("RGB").save("example3.png")
         
     | 
| 31 | 
         
             
            # define id2label, label2color
         
     |