jonathanjordan21 commited on
Commit
086881d
·
verified ·
1 Parent(s): 5824b6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -453,7 +453,7 @@ def respond(
453
  request_numbers.append(undetected_code)
454
  else:
455
  for i in scores_argsort:
456
- if scores[scores_argsort[0]] <= scores[i] - std:
457
  request_details.append(codes[i][6:])
458
  request_numbers.append(codes[i][:3])
459
  request_scores.append(str( round(scores[i].tolist(), 3) ) )
@@ -635,7 +635,7 @@ with gr.Blocks() as demo:
635
  respond,
636
  additional_inputs=[
637
  gr.Number(0.44, label="confidence threshold", show_label=True, minimum=0., maximum=1.0, step=0.1),
638
- gr.Checkbox(label="multiple", info="Allow multiple request code numbers"),
639
  gr.Number(3, label="maximum number of request codes", show_label=True, minimum=0, step=1, precision=0)
640
  ],
641
  # type="messages",
 
453
  request_numbers.append(undetected_code)
454
  else:
455
  for i in scores_argsort:
456
+ if scores[scores_argsort[0]] - std <= scores[i]:
457
  request_details.append(codes[i][6:])
458
  request_numbers.append(codes[i][:3])
459
  request_scores.append(str( round(scores[i].tolist(), 3) ) )
 
635
  respond,
636
  additional_inputs=[
637
  gr.Number(0.44, label="confidence threshold", show_label=True, minimum=0., maximum=1.0, step=0.1),
638
+ gr.Checkbox(True, label="multiple", info="Allow multiple request code numbers"),
639
  gr.Number(3, label="maximum number of request codes", show_label=True, minimum=0, step=1, precision=0)
640
  ],
641
  # type="messages",