sango07 commited on
Commit
3fc3450
·
verified ·
1 Parent(s): ff665bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -18,7 +18,9 @@ from sentence_transformers import SentenceTransformer, util
18
  from langchain_community.embeddings.fastembed import FastEmbedEmbeddings
19
  #from langchain_openai import ChatOpenAI
20
  os.environ["OPENAI_API_KEY"] = "sk-.............."
21
- os.environ["GROQ_API_KEY"]=GROQ_API_KEY
 
 
22
  from langchain_groq import ChatGroq
23
 
24
  llmtemplate = """You’re an AI information specialist with a strong emphasis on extracting accurate information from markdown documents. Your expertise involves summarizing data succinctly while adhering to strict guidelines about neutrality and clarity.
 
18
  from langchain_community.embeddings.fastembed import FastEmbedEmbeddings
19
  #from langchain_openai import ChatOpenAI
20
  os.environ["OPENAI_API_KEY"] = "sk-.............."
21
+
22
+ import os
23
+ os.environ["GROQ_API_KEY"]=os.getenv('GROQ_API_KEY')
24
  from langchain_groq import ChatGroq
25
 
26
  llmtemplate = """You’re an AI information specialist with a strong emphasis on extracting accurate information from markdown documents. Your expertise involves summarizing data succinctly while adhering to strict guidelines about neutrality and clarity.