Spaces:
Runtime error
Runtime error
Héctor Tarrido-Picart
commited on
Commit
·
60371ef
1
Parent(s):
a13bf72
refactor to new gradio
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def predict(img):
|
|
12 |
return dict(zip(categories, map(float, probs)))
|
13 |
|
14 |
|
15 |
-
images = gr.
|
16 |
labels = gr.outputs.Label()
|
17 |
examples = ['powerline_down.jpg', 'powerline_tree.jpg']
|
18 |
|
@@ -27,7 +27,7 @@ intf = gr.Interface(fn=predict,
|
|
27 |
examples=examples,
|
28 |
title=title,
|
29 |
description=description,
|
30 |
-
interpretation=interpretation
|
31 |
-
enable_queue=enable_queue)
|
32 |
|
33 |
-
intf.launch(
|
|
|
|
12 |
return dict(zip(categories, map(float, probs)))
|
13 |
|
14 |
|
15 |
+
images = gr.components.Image(shape=(512, 512))
|
16 |
labels = gr.outputs.Label()
|
17 |
examples = ['powerline_down.jpg', 'powerline_tree.jpg']
|
18 |
|
|
|
27 |
examples=examples,
|
28 |
title=title,
|
29 |
description=description,
|
30 |
+
interpretation=interpretation)
|
|
|
31 |
|
32 |
+
intf.launch(enable_queue=enable_queue,
|
33 |
+
share=true)
|