Sa-m commited on
Commit
c58aa0b
·
verified ·
1 Parent(s): f18a30e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -39,8 +39,8 @@ from sklearn.feature_extraction.text import TfidfVectorizer
39
  from collections import Counter
40
  import numpy as np
41
 
42
- # Load environment variables from .env file
43
- load_dotenv()
44
 
45
  nltk.download('punkt_tab')
46
  nltk.download('stopwords')
@@ -50,7 +50,7 @@ nltk.download('words')
50
 
51
  # Initialize Groq client for LLM capabilities
52
  try:
53
- groq_api_key = os.getenv("GROQ_API_KEY")
54
  if groq_api_key:
55
  groq_client = groq.Groq(api_key=groq_api_key)
56
  else:
 
39
  from collections import Counter
40
  import numpy as np
41
 
42
+ # # Load environment variables from .env file
43
+ # load_dotenv()
44
 
45
  nltk.download('punkt_tab')
46
  nltk.download('stopwords')
 
50
 
51
  # Initialize Groq client for LLM capabilities
52
  try:
53
+ groq_api_key = GROQ_API_KEY
54
  if groq_api_key:
55
  groq_client = groq.Groq(api_key=groq_api_key)
56
  else: