Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def classify_images(img):
|
|
12 |
pred, idx, prob = learn.predict(img)
|
13 |
return dict(zip(actors, map(float, prob)))
|
14 |
|
15 |
-
image = gr.Image(
|
16 |
label = gr.Label()
|
17 |
examples = ['rajini.jpg', 'vijay.jpg', 'raka.jpeg', 'ajith.jpeg']
|
18 |
intf = gr.Interface(fn = classify_images, inputs = image, outputs=label, examples=examples)
|
|
|
12 |
pred, idx, prob = learn.predict(img)
|
13 |
return dict(zip(actors, map(float, prob)))
|
14 |
|
15 |
+
image = gr.Image()
|
16 |
label = gr.Label()
|
17 |
examples = ['rajini.jpg', 'vijay.jpg', 'raka.jpeg', 'ajith.jpeg']
|
18 |
intf = gr.Interface(fn = classify_images, inputs = image, outputs=label, examples=examples)
|