Eshieh2 commited on
Commit
a504d31
·
1 Parent(s): ca1c365

fix examples part 2

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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", None), ("Reduce False Positives",0.23)], label = "Confidence")
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"],None],[["guaraci.jpg"],None],[["marcela.jpg"],None]], title = title, description = desc).launch()
 
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()