SagarPuniyani commited on
Commit
e98cceb
·
verified ·
1 Parent(s): 1d0c7f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -2,6 +2,13 @@ from pathlib import Path
2
  from fastai.vision.all import *
3
  import gradio as gr
4
 
 
 
 
 
 
 
 
5
  # Correctly format the path for Windows
6
  model_path = Path(r'efficientnet_b3_model.pkl')
7
 
@@ -19,7 +26,8 @@ interface = gr.Interface(
19
  inputs=gr.Image(type="pil"),
20
  outputs=gr.Label(num_top_classes=3),
21
  title="EfficientNet B3 Image Classifier",
22
- description="Upload an image to classify using the trained EfficientNet B3 model."
 
23
  )
24
 
25
 
 
2
  from fastai.vision.all import *
3
  import gradio as gr
4
 
5
+ examples = [
6
+ ["data/WBC-Benign-017.jpg"], # Replace with the actual paths to your images
7
+ ["data/WBC-Benign-030.jpg"],
8
+ ["data/WBC-Malignant-Early-027.jpg"],
9
+ ["data/WBC-Malignant-Pre-019.jpg"],
10
+ ["data/WBC-Malignant-Pro-027.jpg"]
11
+ ]
12
  # Correctly format the path for Windows
13
  model_path = Path(r'efficientnet_b3_model.pkl')
14
 
 
26
  inputs=gr.Image(type="pil"),
27
  outputs=gr.Label(num_top_classes=3),
28
  title="EfficientNet B3 Image Classifier",
29
+ examples= examples,
30
+ description="Upload an image to classify using the trained EfficientNet B3 model.",
31
  )
32
 
33