Sa-m commited on
Commit
62f1d2a
·
verified ·
1 Parent(s): 2cbc17e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -32,10 +32,9 @@ from sklearn.feature_extraction.text import TfidfVectorizer
32
  load_dotenv()
33
 
34
  # Download NLTK resources (Ensure this runs once or handle caching)
35
- # nltk.download(['stopwords', 'wordnet', 'words'])
36
- # nltk.download('punkt')
37
- # nltk.download('punkt_tab')
38
-
39
  # Initialize Groq client
40
  groq_api_key = os.getenv("GROQ_API_KEY")
41
  groq_client = groq.Groq(api_key=groq_api_key) if groq_api_key else None
 
32
  load_dotenv()
33
 
34
  # Download NLTK resources (Ensure this runs once or handle caching)
35
+ nltk.download(['stopwords', 'wordnet', 'words'])
36
+ nltk.download('punkt')
37
+ nltk.download('punkt_tab')
 
38
  # Initialize Groq client
39
  groq_api_key = os.getenv("GROQ_API_KEY")
40
  groq_client = groq.Groq(api_key=groq_api_key) if groq_api_key else None