nidhibodar11 commited on
Commit
72cf76b
·
verified ·
1 Parent(s): 607db6e

environment variables updated

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -34,7 +34,7 @@ def get_pdf_processed(pdf_docs):
34
 
35
  def llm_model():
36
  # llm = ChatGroq(model="mixtral-8x7b-32768",groq_api_key=st.secrets['GROQ_API_KEY'])
37
- llm = ChatGroq(model="mixtral-8x7b-32768",groq_api_key=groq_api_key)
38
  prompt = ChatPromptTemplate.from_template(
39
  """
40
  Answer the question based on the provided context only.
@@ -57,7 +57,6 @@ def llm_model():
57
  st.write(response['answer'])
58
  st.write("Response time: ", time.process_time() - start)
59
 
60
- # st.session_state.embeddings =GoogleGenerativeAIEmbeddings(model = 'models/embedding-001',google_api_key=st.secrets['GOOGLE_API_KEY'])
61
  model_name = "all-MiniLM-L6-v2"
62
  st.session_state.embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
63
 
 
34
 
35
  def llm_model():
36
  # llm = ChatGroq(model="mixtral-8x7b-32768",groq_api_key=st.secrets['GROQ_API_KEY'])
37
+ llm = ChatGroq(model="mixtral-8x7b-32768")
38
  prompt = ChatPromptTemplate.from_template(
39
  """
40
  Answer the question based on the provided context only.
 
57
  st.write(response['answer'])
58
  st.write("Response time: ", time.process_time() - start)
59
 
 
60
  model_name = "all-MiniLM-L6-v2"
61
  st.session_state.embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
62