Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
# JB:
|
2 |
# LangChainDeprecationWarning: Importing embeddings from langchain is deprecated.
|
3 |
# Importing from langchain will no longer be supported as of langchain==0.2.0.
|
4 |
# Please import from langchain-community instead:
|
@@ -46,7 +46,7 @@ groq_api_key = "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" # os.e
|
|
46 |
print("groq_api_key: ", groq_api_key)
|
47 |
|
48 |
# st.title("Chat with Docs - Groq Edition :) ")
|
49 |
-
st.title("Literature Based Research (LBR) - A. Unzicker and J. Bours - Chat with Docs - Groq Edition (Very Fast!) - VERSION 3 -
|
50 |
|
51 |
st.write("---------------------------------")
|
52 |
|
@@ -157,7 +157,7 @@ st.write("---------------------------------")
|
|
157 |
llm = ChatGroq(
|
158 |
temperature=0.2,
|
159 |
groq_api_key=groq_api_key,
|
160 |
-
model_name='mixtral-8x7b-32768'
|
161 |
)
|
162 |
|
163 |
prompt = ChatPromptTemplate.from_template("""
|
|
|
1 |
+
# JB: app.py - 30-04-2024 (added: llama3-70b-8192)
|
2 |
# LangChainDeprecationWarning: Importing embeddings from langchain is deprecated.
|
3 |
# Importing from langchain will no longer be supported as of langchain==0.2.0.
|
4 |
# Please import from langchain-community instead:
|
|
|
46 |
print("groq_api_key: ", groq_api_key)
|
47 |
|
48 |
# st.title("Chat with Docs - Groq Edition :) ")
|
49 |
+
st.title("Literature Based Research (LBR) - A. Unzicker and J. Bours - Chat with Docs - llama3-70b-8192 Groq Edition (Very Fast!) - VERSION 3 - April 30, 2024")
|
50 |
|
51 |
st.write("---------------------------------")
|
52 |
|
|
|
157 |
llm = ChatGroq(
|
158 |
temperature=0.2,
|
159 |
groq_api_key=groq_api_key,
|
160 |
+
model_name='llama3-70b-8192' #'mixtral-8x7b-32768'
|
161 |
)
|
162 |
|
163 |
prompt = ChatPromptTemplate.from_template("""
|