maba11 commited on
Commit
d2e925c
·
verified ·
1 Parent(s): 41db728

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -60,10 +60,18 @@ examples = ["NoMask.jpg",
60
 
61
  title = "Mask Classifier"
62
 
 
 
 
 
 
 
 
 
63
  # Single Out Interface
64
  single_out = gr.Interface(
65
  fn=predict_single_out,
66
- inputs=gr.Image(type="filepath"),
67
  outputs=label_singleOut,
68
  examples=examples,
69
  title="Single Output Mask Classifier",
@@ -75,7 +83,7 @@ with single_out:
75
  # Multi Out Interface
76
  multi_out = gr.Interface(
77
  fn=predict_multi_out,
78
- inputs=gr.Image(type="filepath"),
79
  outputs=[label_mask, label_manufacturer, label_maskType, label_ventedType],
80
  examples=examples,
81
  title="Multi Output Mask Classifier",
 
60
 
61
  title = "Mask Classifier"
62
 
63
+ image_single_out = gr.Image(type="filepath",
64
+ height=400,
65
+ sources=['upload', 'clipboard'])
66
+
67
+ image_multi_out = gr.Image(type="filepath",
68
+ height=400,
69
+ sources=['upload', 'clipboard'])
70
+
71
  # Single Out Interface
72
  single_out = gr.Interface(
73
  fn=predict_single_out,
74
+ inputs=image_single_out,
75
  outputs=label_singleOut,
76
  examples=examples,
77
  title="Single Output Mask Classifier",
 
83
  # Multi Out Interface
84
  multi_out = gr.Interface(
85
  fn=predict_multi_out,
86
+ inputs=image_multi_out,
87
  outputs=[label_mask, label_manufacturer, label_maskType, label_ventedType],
88
  examples=examples,
89
  title="Multi Output Mask Classifier",