Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -253,7 +253,9 @@ if st.session_state.screen == 2:
|
|
| 253 |
for boxes in pred.boxes:
|
| 254 |
if boxes.conf >= 0.5:
|
| 255 |
character_dict[class_names[int(boxes.cls.item())]].append(idx + 1)
|
| 256 |
-
|
|
|
|
|
|
|
| 257 |
output = ""
|
| 258 |
for key, value in character_dict:
|
| 259 |
output += str(key) + str(value)
|
|
|
|
| 253 |
for boxes in pred.boxes:
|
| 254 |
if boxes.conf >= 0.5:
|
| 255 |
character_dict[class_names[int(boxes.cls.item())]].append(idx + 1)
|
| 256 |
+
except:
|
| 257 |
+
pass
|
| 258 |
+
|
| 259 |
output = ""
|
| 260 |
for key, value in character_dict:
|
| 261 |
output += str(key) + str(value)
|