Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update presidio_streamlit.py #1513

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update presidio_streamlit.py #1513

wants to merge 1 commit into from

Conversation

rz1027
Copy link

@rz1027 rz1027 commented Jan 21, 2025

In the demo the analyzer is being instantiated but not used.
This might work in Streamlit (because of st.cache), but in other scenarios the model will get reloaded on each run of the function.

Using the instantiated analyzer to analyze
@omri374
Copy link
Contributor

omri374 commented Jan 23, 2025

Thanks. What other scenarios are you looking at? The code here is used primarily to experiment with different setups. The change suggested breaks the existing streamlit demo code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants