Ritesh-hf commited on
Commit
c29148e
1 Parent(s): 2da4aaf

nltk problem solve

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -6,6 +6,9 @@ os.environ['USER_AGENT'] = os.getenv("USER_AGENT")
6
  os.environ["GROQ_API_KEY"] = os.getenv("GROQ_API_KEY")
7
  os.environ["TOKENIZERS_PARALLELISM"]='true'
8
 
 
 
 
9
  from langchain.chains import create_history_aware_retriever, create_retrieval_chain
10
  from langchain.chains.combine_documents import create_stuff_documents_chain
11
  from langchain_community.chat_message_histories import ChatMessageHistory
 
6
  os.environ["GROQ_API_KEY"] = os.getenv("GROQ_API_KEY")
7
  os.environ["TOKENIZERS_PARALLELISM"]='true'
8
 
9
+ import nltk
10
+ nltk.download('punkt')
11
+
12
  from langchain.chains import create_history_aware_retriever, create_retrieval_chain
13
  from langchain.chains.combine_documents import create_stuff_documents_chain
14
  from langchain_community.chat_message_histories import ChatMessageHistory