fix examples part 2
Browse files
app.py
CHANGED
@@ -149,7 +149,7 @@ def classify_multiple(files,confidence):
|
|
149 |
return firstResult, textResult
|
150 |
#image = gr.Image(type='pil')
|
151 |
image = gr.File(label = "Input Images", file_count = 'multiple', file_types = ['image'])
|
152 |
-
conf = gr.Radio(choices = [("Best Guess",
|
153 |
|
154 |
output = gr.AnnotatedImage(label = "First Result")
|
155 |
output2 = gr.Textbox(label = "File Results")
|
@@ -157,4 +157,4 @@ title = "JaguarID AI identification App"
|
|
157 |
valid_display = [word.capitalize() for word in valid]
|
158 |
desc = f"Identifies the following: {', '.join(valid_display)} . Confidence displayed after the name is on a 0.0 - 1.0 scale. Must have a clear front/side head view."
|
159 |
|
160 |
-
gr.Interface(fn=classify_multiple, inputs=[image,conf], outputs=[output,output2], examples = [[["medrosa.jpg"],
|
|
|
149 |
return firstResult, textResult
|
150 |
#image = gr.Image(type='pil')
|
151 |
image = gr.File(label = "Input Images", file_count = 'multiple', file_types = ['image'])
|
152 |
+
conf = gr.Radio(choices = [("Best Guess", 0.0), ("Reduce False Positives",0.23)], label = "Confidence")
|
153 |
|
154 |
output = gr.AnnotatedImage(label = "First Result")
|
155 |
output2 = gr.Textbox(label = "File Results")
|
|
|
157 |
valid_display = [word.capitalize() for word in valid]
|
158 |
desc = f"Identifies the following: {', '.join(valid_display)} . Confidence displayed after the name is on a 0.0 - 1.0 scale. Must have a clear front/side head view."
|
159 |
|
160 |
+
gr.Interface(fn=classify_multiple, inputs=[image,conf], outputs=[output,output2], examples = [[["medrosa.jpg"],0.0],[["guaraci.jpg"],0.0],[["marcela.jpg"],0.0]], title = title, description = desc).launch()
|