NLTK install (punkt) on streamlit cc

I want to use nltk library in my deployment.
I add the install in the code as:
import nltk
nltk.download(‘punkt’)

when the “cake is being baked” - I get a request to confirm the download (see attachment).
How do I do that? (press (d) for instance?
Tx
Rok

Hey @xxxrokxxx,

I’m surprised you’re getting a request to confirm the download – can you share the contents of your requirements.txt file?

Hello,
sure… did you mean any special setting …?

nltk==3.8.1
streamlit==1.25.0
streamlit-option-menu==0.3.6

Tx
Rok

Hey @xxxrokxxx,

I wasn’t able to reproduce this error (I’ve tried here) – can you share the link to your GitHub repo?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.