Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,8 +27,9 @@ 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 |
-
gr.Interface(
|
31 |
fn = cardiomegaly,
|
32 |
-
inputs =
|
33 |
outputs = gr.outputs.Label(),
|
34 |
-
)
|
|
|
|
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 |
+
iface = gr.Interface(
|
31 |
fn = cardiomegaly,
|
32 |
+
inputs = gr.Image(shape=(150, 150)),
|
33 |
outputs = gr.outputs.Label(),
|
34 |
+
)
|
35 |
+
iface.launch(share=True)
|