ttxskk commited on
Commit
7e3060e
·
verified ·
1 Parent(s): f6cbd78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -103,7 +103,8 @@ VIDEO = '''
103
 
104
  DESCRIPTION = '''
105
  <p>
106
- Note: If a detected person's score is lower than the score threshold, this detection will be discarded. The default value is 0.3.
 
107
  </p>
108
  '''
109
  with gr.Blocks(title="AiOS", theme=gr.themes.Soft(primary_hue="blue", secondary_hue="gray")) as demo:
@@ -117,7 +118,7 @@ with gr.Blocks(title="AiOS", theme=gr.themes.Soft(primary_hue="blue", secondary_
117
  with gr.Column(scale=1):
118
  batch_size = gr.Textbox(label="Batch Size", type="text", value=8)
119
  num_person = gr.Textbox(label="Number of Person", type="text", value=1)
120
- threshold = gr.Slider(0, 1.0, value=0.5, label='Score Threshold')
121
  send_button = gr.Button("Infer")
122
  gr.HTML("""<br/>""")
123
 
 
103
 
104
  DESCRIPTION = '''
105
  <p>
106
+ Note: Score threshold defines the minimum confidence level for person detection. The default value is 0.3.
107
+ If the confidence score of a detected person falls below this score threshold, the detection will be discarded.
108
  </p>
109
  '''
110
  with gr.Blocks(title="AiOS", theme=gr.themes.Soft(primary_hue="blue", secondary_hue="gray")) as demo:
 
118
  with gr.Column(scale=1):
119
  batch_size = gr.Textbox(label="Batch Size", type="text", value=8)
120
  num_person = gr.Textbox(label="Number of Person", type="text", value=1)
121
+ threshold = gr.Slider(0, 1.0, value=0.3, label='Score Threshold')
122
  send_button = gr.Button("Infer")
123
  gr.HTML("""<br/>""")
124