srijaydeshpande commited on
Commit
e15d6d5
·
1 Parent(s): eabf5fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -88,12 +88,12 @@ def deidentify_doc(pdftext="", prompt="", maxtokens=600, temperature=1.2, top_pr
88
  position = wordstoremove.find("STARTTOKEN,")
89
  if position != -1:
90
  wordstoremove = wordstoremove[position + len("STARTTOKEN,"):].strip()
91
- output = replace_words_with_asterisk(pdftext, wordstoremove.split(','))
92
  return output
93
 
94
  iterations=2
95
  output = pdftext
96
- for _ in iterations:
97
  output = get_output(output)
98
  return output
99
 
 
88
  position = wordstoremove.find("STARTTOKEN,")
89
  if position != -1:
90
  wordstoremove = wordstoremove[position + len("STARTTOKEN,"):].strip()
91
+ output = replace_words_with_asterisk(pdfcontent, wordstoremove.split(','))
92
  return output
93
 
94
  iterations=2
95
  output = pdftext
96
+ for iter in iterations:
97
  output = get_output(output)
98
  return output
99