Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -2,7 +2,7 @@ from keras.models import load_model | |
| 2 | 
             
            import cv2
         | 
| 3 | 
             
            from tensorflow.keras.preprocessing.image import ImageDataGenerator
         | 
| 4 | 
             
            import gradio as gr
         | 
| 5 | 
            -
             | 
| 6 |  | 
| 7 | 
             
            heart_model=load_model('Chicken_Heart_model.h5',compile=True)
         | 
| 8 | 
             
            class_name={0:'Dilation(eccentric)',1:'Hepatoma',2:'Hypertrophy(concentric)',3:'Hypertrophy(physiological)',4:'Infraction Damage',5:'Normal'}
         | 
|  | |
| 2 | 
             
            import cv2
         | 
| 3 | 
             
            from tensorflow.keras.preprocessing.image import ImageDataGenerator
         | 
| 4 | 
             
            import gradio as gr
         | 
| 5 | 
            +
            import numpy as np
         | 
| 6 |  | 
| 7 | 
             
            heart_model=load_model('Chicken_Heart_model.h5',compile=True)
         | 
| 8 | 
             
            class_name={0:'Dilation(eccentric)',1:'Hepatoma',2:'Hypertrophy(concentric)',3:'Hypertrophy(physiological)',4:'Infraction Damage',5:'Normal'}
         |