Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
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 = '''
|