Update app.py
Browse files
app.py
CHANGED
@@ -200,8 +200,7 @@ def main():
|
|
200 |
has_fracture = False
|
201 |
max_fracture_score = 0
|
202 |
filtered_locations = [p for p in predictions_locator
|
203 |
-
if p['score'] >= conf_threshold
|
204 |
-
and 'fracture' in p['label'].lower()]
|
205 |
|
206 |
for pred in predictions_watcher:
|
207 |
if pred['score'] >= conf_threshold and 'fracture' in pred['label'].lower():
|
@@ -255,8 +254,7 @@ def main():
|
|
255 |
|
256 |
with col2:
|
257 |
predictions = models["KnochenAuge"](image)
|
258 |
-
filtered_preds = [p for p in predictions if p['score'] >= conf_threshold
|
259 |
-
and 'fracture' in p['label'].lower()]
|
260 |
|
261 |
if filtered_preds:
|
262 |
st.write("#### 🎯 Fraktur Lokalisation")
|
|
|
200 |
has_fracture = False
|
201 |
max_fracture_score = 0
|
202 |
filtered_locations = [p for p in predictions_locator
|
203 |
+
if p['score'] >= conf_threshold]
|
|
|
204 |
|
205 |
for pred in predictions_watcher:
|
206 |
if pred['score'] >= conf_threshold and 'fracture' in pred['label'].lower():
|
|
|
254 |
|
255 |
with col2:
|
256 |
predictions = models["KnochenAuge"](image)
|
257 |
+
filtered_preds = [p for p in predictions if p['score'] >= conf_threshold]
|
|
|
258 |
|
259 |
if filtered_preds:
|
260 |
st.write("#### 🎯 Fraktur Lokalisation")
|