omarhkh commited on
Commit
29a2cac
·
1 Parent(s): d23c7fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -140,7 +140,7 @@ def tott(model_name,url_input,image_input,threshold,type2):
140
  keep = processed_outputs["scores"] > threshold
141
  det_lab = processed_outputs["labels"][keep].tolist()
142
  xxresult=0
143
- if det_lab.count(1) == 0:
144
  xxresult=1
145
  if det_lab.count(4) == 0:
146
  if type2=="Trench Depth Measurement":
@@ -173,7 +173,7 @@ This application can be used as follows:
173
  - Press Results
174
  """
175
 
176
- models = ["omarhkh/detr-finetuned-omar8"]
177
  types_class = ["Trench Depth Measurement", "Trench Width Measurement"]
178
 
179
  css = '''
 
140
  keep = processed_outputs["scores"] > threshold
141
  det_lab = processed_outputs["labels"][keep].tolist()
142
  xxresult=0
143
+ if det_lab.count(6) == 0:
144
  xxresult=1
145
  if det_lab.count(4) == 0:
146
  if type2=="Trench Depth Measurement":
 
173
  - Press Results
174
  """
175
 
176
+ models = ["omarhkh/CutLER-finetuned-12","omarhkh/detr-finetuned-omar8"]
177
  types_class = ["Trench Depth Measurement", "Trench Width Measurement"]
178
 
179
  css = '''