JaredBailey commited on
Commit
ca4166e
·
verified ·
1 Parent(s): 26a2e45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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
- output += str(key) + str(value)
 
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))