Alex Strick van Linschoten commited on
Commit
3c4841c
1 Parent(s): 8f26658

update app

Browse files
Files changed (1) hide show
  1. streamlit_app.py +0 -2
streamlit_app.py CHANGED
@@ -43,7 +43,6 @@ learn = load_fastai_model()
43
  labels = learn.dls.vocab
44
 
45
 
46
- @st.experimental_memo
47
  def get_content_area(pred_dict) -> int:
48
  if "content" not in pred_dict["detection"]["labels"]:
49
  return 0
@@ -56,7 +55,6 @@ def get_content_area(pred_dict) -> int:
56
  return (cb.xmax - cb.xmin) * (cb.ymax - cb.ymin)
57
 
58
 
59
- @st.experimental_memo
60
  def get_redaction_area(pred_dict) -> int:
61
  if "redaction" not in pred_dict["detection"]["labels"]:
62
  return 0
 
43
  labels = learn.dls.vocab
44
 
45
 
 
46
  def get_content_area(pred_dict) -> int:
47
  if "content" not in pred_dict["detection"]["labels"]:
48
  return 0
 
55
  return (cb.xmax - cb.xmin) * (cb.ymax - cb.ymin)
56
 
57
 
 
58
  def get_redaction_area(pred_dict) -> int:
59
  if "redaction" not in pred_dict["detection"]["labels"]:
60
  return 0