Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -169,7 +169,9 @@ test12 = os.path.join(os.path.dirname(__file__), "data/test12.jpeg")
|
|
169 |
|
170 |
base_image = gr.Interface(
|
171 |
fn=predict,
|
172 |
-
inputs=[gr.Image(type="pil"),gr.Slider(minimum=0.01, maximum=1, value=0.38 ,label="Threshold",info="[not in used]to set prediction confidence threshold")],
|
|
|
|
|
173 |
outputs=[gr.Image(type="pil",label="Base Model Inference"),gr.Image(type="pil",label="Tuned Model Inference")],
|
174 |
title="Luffy and Chopper Head detection. SSD mobile net V2 320x320",
|
175 |
description="Upload a Image for prediction or click on below examples. Prediction confident >38% will be shown in dectected images. Threshold slider is WIP",
|
|
|
169 |
|
170 |
base_image = gr.Interface(
|
171 |
fn=predict,
|
172 |
+
# inputs=[gr.Image(type="pil"),gr.Slider(minimum=0.01, maximum=1, value=0.38 ,label="Threshold",info="[not in used]to set prediction confidence threshold")],
|
173 |
+
inputs=[gr.Image(type="pil"),gr.Textbox(value=0.38 ,label="Threshold",info="to set prediction confidence threshold")],
|
174 |
+
|
175 |
outputs=[gr.Image(type="pil",label="Base Model Inference"),gr.Image(type="pil",label="Tuned Model Inference")],
|
176 |
title="Luffy and Chopper Head detection. SSD mobile net V2 320x320",
|
177 |
description="Upload a Image for prediction or click on below examples. Prediction confident >38% will be shown in dectected images. Threshold slider is WIP",
|