Spaces:
Sleeping
Sleeping
idan-haimovich
commited on
Commit
·
db58117
1
Parent(s):
1f10591
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ def classify_image(img):
|
|
11 |
pred, idx, probs = learn.predict(img)
|
12 |
return dict(zip(categories, map(float, probs)))
|
13 |
|
14 |
-
image=gr.Image(height =
|
15 |
label = gr.Label()
|
16 |
examples = ['Cuts_for_nn.jpeg', 'Fracture_examp.jpeg', 'Rash.jpeg', 'Splinter_examp.jpeg', 'Splinter_download.jpeg', 'Cut_download.jpeg', 'Rash_download.jpeg', 'Fracture_download.jpeg']
|
17 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
|
|
11 |
pred, idx, probs = learn.predict(img)
|
12 |
return dict(zip(categories, map(float, probs)))
|
13 |
|
14 |
+
image=gr.Image(height = 300, width = 300)
|
15 |
label = gr.Label()
|
16 |
examples = ['Cuts_for_nn.jpeg', 'Fracture_examp.jpeg', 'Rash.jpeg', 'Splinter_examp.jpeg', 'Splinter_download.jpeg', 'Cut_download.jpeg', 'Rash_download.jpeg', 'Fracture_download.jpeg']
|
17 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|