NORLIE JHON MALAGDAO
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -71,11 +71,6 @@ data_dir = pathlib.Path(data_dir)
|
|
71 |
|
72 |
|
73 |
|
74 |
-
bees = list(data_dir.glob('bees/*'))
|
75 |
-
print(bees[0])
|
76 |
-
PIL.Image.open(str(bees[0]))
|
77 |
-
|
78 |
-
|
79 |
|
80 |
img_height,img_width=180,180
|
81 |
batch_size=32
|
@@ -178,16 +173,7 @@ def predict_image(img):
|
|
178 |
image = gr.Image()
|
179 |
label = gr.Label(num_top_classes=5)
|
180 |
|
181 |
-
|
182 |
-
custom_css = """
|
183 |
-
body {
|
184 |
-
background-image: url('\extracted_files\Pest_Dataset\bees\bees (444).jpg');
|
185 |
-
background-size: cover;
|
186 |
-
background-repeat: no-repeat;
|
187 |
-
background-attachment: fixed;
|
188 |
-
color: white;
|
189 |
-
}
|
190 |
-
"""
|
191 |
|
192 |
gr.Interface(
|
193 |
fn=predict_image,
|
|
|
71 |
|
72 |
|
73 |
|
|
|
|
|
|
|
|
|
|
|
74 |
|
75 |
img_height,img_width=180,180
|
76 |
batch_size=32
|
|
|
173 |
image = gr.Image()
|
174 |
label = gr.Label(num_top_classes=5)
|
175 |
|
176 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
|
178 |
gr.Interface(
|
179 |
fn=predict_image,
|