environment variables updated
Browse files
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"
|
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 |
|