Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -256,11 +256,12 @@ if st.session_state.screen == 2:
|
|
| 256 |
except:
|
| 257 |
pass
|
| 258 |
|
| 259 |
-
output = ""
|
| 260 |
for key, value in character_dict.items():
|
| 261 |
-
|
|
|
|
| 262 |
|
| 263 |
-
st.write(output)
|
| 264 |
#extract detected character names and their confidence scores
|
| 265 |
# st.session_state.detected_characters = {}
|
| 266 |
# st.write(str(idx) + str(pred.cls) + str(pred.conf))
|
|
|
|
| 256 |
except:
|
| 257 |
pass
|
| 258 |
|
| 259 |
+
st.session_state.output = ""
|
| 260 |
for key, value in character_dict.items():
|
| 261 |
+
if value != []:
|
| 262 |
+
st.session_state.output += str(key) + " tiles: "+ str(value) + "\n"
|
| 263 |
|
| 264 |
+
st.write(st.session_state.output)
|
| 265 |
#extract detected character names and their confidence scores
|
| 266 |
# st.session_state.detected_characters = {}
|
| 267 |
# st.write(str(idx) + str(pred.cls) + str(pred.conf))
|