change app.py
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -23,12 +23,12 @@ def predict(img): 
     | 
|
| 23 | 
         
             
            	return dict(zip(categories, map(float, probs)))
         
     | 
| 24 | 
         | 
| 25 | 
         | 
| 26 | 
         
            -
            title = "Pediatric Pneumonia  
     | 
| 27 | 
         | 
| 28 | 
         
            -
            description = "A pediatric pneumonia  
     | 
| 29 | 
         | 
| 30 | 
         | 
| 31 | 
         
            -
            article = "<p style='text-align: center'><span style='font-size: 15pt;'>Pediatric Pneumonia  
     | 
| 32 | 
         | 
| 33 | 
         | 
| 34 | 
         
             
            image = gr.inputs.Image(shape=(512, 512))
         
     | 
| 
         | 
|
| 23 | 
         
             
            	return dict(zip(categories, map(float, probs)))
         
     | 
| 24 | 
         | 
| 25 | 
         | 
| 26 | 
         
            +
            title = "Pediatric Pneumonia Chest X-Ray Predictor"
         
     | 
| 27 | 
         | 
| 28 | 
         
            +
            description = "A pediatric pneumonia chest x-ray predictor model trained on the chest-xray-pneumonia dataset, using ResNet18 via <a href='https://https://www.fast.ai/' target='_blank'>fast.ai</a>. The dataset is from: <a href='https://www.kaggle.com/datasets/paultimothymooney/chest-xray-pneumonia' target='_blank'>Chest X-Ray Images (Pneumonia)</a> and the associated scientific journal paper is <a href='https://www.cell.com/cell/fulltext/S0092-8674(18)30154-5' target='_blank'>Identifying Medical Diagnoses and Treatable Diseases by Image-Based Deep Learning</a>. The accuracy of the model is: 81.25%"
         
     | 
| 29 | 
         | 
| 30 | 
         | 
| 31 | 
         
            +
            article = "<p style='text-align: center'><span style='font-size: 15pt;'>Pediatric Pneumonia Chest X-Ray Predictor. Zakia Salod. 2022. </span></p>"
         
     | 
| 32 | 
         | 
| 33 | 
         | 
| 34 | 
         
             
            image = gr.inputs.Image(shape=(512, 512))
         
     |