Mlaana commited on
Commit
e8714f7
·
1 Parent(s): 5b3c174
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -39,5 +39,19 @@ def predict(img):
39
  'status' : 'Ok'
40
  }
41
 
42
- interface = gr.Interface(fn=predict, inputs=gr.Image(type="pil"),outputs="text")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  interface.launch()
 
39
  'status' : 'Ok'
40
  }
41
 
42
+
43
+ interface = gr.Interface(
44
+ fn=predict,
45
+ inputs=[
46
+ gr.Image(type="pil"),
47
+ gr.Slider(0, 1, value=0.5, label="Confidence Threshold")
48
+ ],
49
+ outputs=[
50
+ gr.Textbox(label="Label"),
51
+ gr.Textbox(label="Confidence"),
52
+ gr.Textbox(label="Status")
53
+ ],
54
+ title="CNN Makanan Classifier"
55
+ )
56
+
57
  interface.launch()