Spaces:
Runtime error
Runtime error
Commit
·
d1f2c03
1
Parent(s):
31b8e29
Update app.py
Browse files
app.py
CHANGED
@@ -27,9 +27,8 @@ def cardiomegaly(img):
|
|
27 |
#match same shape as the input shape in the model
|
28 |
im = gr.inputs.Image(shape=(150, 150), image_mode='RGB', invert_colors=False, source="upload")
|
29 |
#setup the interface
|
30 |
-
|
31 |
fn = cardiomegaly,
|
32 |
inputs = im,
|
33 |
outputs = gr.outputs.Label(),
|
34 |
-
)
|
35 |
-
iface.launch()
|
|
|
27 |
#match same shape as the input shape in the model
|
28 |
im = gr.inputs.Image(shape=(150, 150), image_mode='RGB', invert_colors=False, source="upload")
|
29 |
#setup the interface
|
30 |
+
gr.Interface(
|
31 |
fn = cardiomegaly,
|
32 |
inputs = im,
|
33 |
outputs = gr.outputs.Label(),
|
34 |
+
).launch()
|
|