Nina-HK commited on
Commit
99cf335
1 Parent(s): 576e3c8

mix function

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -72,10 +72,11 @@ binary_interface_efn = gr.Interface(fn=classify_efn,
72
  examples=[['300104.png']]
73
  )
74
 
75
- demo = gr.Interface([binary_interface_cnn, binary_interface_efn],
76
- "tab",
77
- gr.inputs.Image(shape=(224, 224)),
78
- gr.outputs.Label(num_top_classes=2),
79
- title="Binary Image Classification",
80
- description="Classify an image as healthy or patient using either CNN or EfficientNet.")
 
81
  demo.launch()
 
72
  examples=[['300104.png']]
73
  )
74
 
75
+ demo = gr.Interface(
76
+ fn=gradio.mix.Parallel([classify_cnn, classify_efn]),
77
+ inputs=gr.inputs.Image(shape=(224, 224)),
78
+ outputs=gr.outputs.Label(num_top_classes=2),
79
+ title="Binary Image Classification",
80
+ description="Classify an image as healthy or patient using either CNN or EfficientNet.",
81
+ )
82
  demo.launch()