arogeriogel commited on
Commit
981d935
1 Parent(s): 0ab605c

update app

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -304,11 +304,11 @@ with col1:
304
  annotated_tokens=annotate()
305
  annotated_text(*annotated_tokens)
306
  st.write(st.session_state.analyze_results)
307
- if not st.session_state.analyze_results and analyze_now:
308
  st.write("No PII was found.")
309
 
310
  with col2:
311
  if st.session_state.anon_results:
312
  st.write(st.session_state.anon_results.text)
313
- if not st.session_state.analyze_results and anonymise_now:
314
  st.write("No PII was found.")
 
304
  annotated_tokens=annotate()
305
  annotated_text(*annotated_tokens)
306
  st.write(st.session_state.analyze_results)
307
+ if not st.session_state.analyze_results and analyze_now and not st.session_state.text_error:
308
  st.write("No PII was found.")
309
 
310
  with col2:
311
  if st.session_state.anon_results:
312
  st.write(st.session_state.anon_results.text)
313
+ if not st.session_state.analyze_results and anonymise_now and not st.session_state.text_error:
314
  st.write("No PII was found.")