Spaces:
				
			
			
	
			
			
					
		Running
		
	
	
	
			
			
	
	
	
	
		
		
					
		Running
		
	Update app.py
#4
by
						
yikesongcai
	
							
						- opened
							
					
    	
        app.py
    CHANGED
    
    | @@ -32,7 +32,7 @@ def predict(img, conf, iou): | |
| 32 | 
             
                        scratches += 1
         | 
| 33 | 
             
                    # 绘制柱状图
         | 
| 34 | 
             
                fig, ax = plt.subplots()
         | 
| 35 | 
            -
                categories = [' | 
| 36 | 
             
                counts = [crazing,inclusion, patches ,pitted_surface, rolled_inscale ,scratches]
         | 
| 37 | 
             
                ax.bar(categories, counts)
         | 
| 38 | 
             
                ax.set_title('Category-Count')
         | 
|  | |
| 32 | 
             
                        scratches += 1
         | 
| 33 | 
             
                    # 绘制柱状图
         | 
| 34 | 
             
                fig, ax = plt.subplots()
         | 
| 35 | 
            +
                categories = ['Crack','inclusion', 'patches' ,'pitted_surface', 'rolled_inscale' ,'scratches']
         | 
| 36 | 
             
                counts = [crazing,inclusion, patches ,pitted_surface, rolled_inscale ,scratches]
         | 
| 37 | 
             
                ax.bar(categories, counts)
         | 
| 38 | 
             
                ax.set_title('Category-Count')
         |