Skip to content

Commit

Permalink
Update presidio_streamlit.py
Browse files Browse the repository at this point in the history
Using the instantiated analyzer to analyze
  • Loading branch information
rz1027 authored Jan 21, 2025
1 parent a78e659 commit 886f64f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/samples/python/streamlit/presidio_streamlit.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,15 +298,13 @@ def set_up_openai_synthesis():
analyzer = analyzer_engine(*analyzer_params)
analyzer_load_state.empty()

st_analyze_results = analyze(
*analyzer_params,
st_analyze_results = analyzer.analyze(
text=st_text,
entities=st_entities,
language="en",
score_threshold=st_threshold,
return_decision_process=st_return_decision_process,
allow_list=st_allow_list,
deny_list=st_deny_list,
allow_list=st_allow_list
)

# After
Expand Down

0 comments on commit 886f64f

Please sign in to comment.