demfier commited on
Commit
12c17cc
·
1 Parent(s): 3588e50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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 = im,
33
  outputs = gr.outputs.Label(),
34
- ).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
+ iface = gr.Interface(
31
  fn = cardiomegaly,
32
+ inputs = gr.Image(shape=(150, 150)),
33
  outputs = gr.outputs.Label(),
34
+ )
35
+ iface.launch(share=True)