JBHF commited on
Commit
9e9ed56
·
1 Parent(s): 25103e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -7
app.py CHANGED
@@ -1,4 +1,4 @@
1
- # NonToxicGlazeAdvisor_Chat_with_Docs_Groq_Edition_1 - app.py - 28-04-2024
2
 
3
  # STREAMLIT:
4
  # https://www.datacamp.com/tutorial/streamlit:
@@ -125,9 +125,11 @@ Veel plezier en nuttig gebruik van de AI app !
125
  st.subheader("(ALL RIGHTS RESERVED)")
126
  st.image('Jan_Bours_2.png', caption='Jan Bours', width=100)
127
  st.write("---------------------------------")
128
- # st.subheader("Chat with Docs - Using AI: 'mixtral-8x7b-32768' Groq Edition (Very Fast!) - VERSION 2 - April 28, 2024")
129
  # llama3-8b-8192 JB TEST;
130
- st.subheader("Chat with Docs - Using AI: 'llama3-8b-8192' Groq Edition (Very Fast!) - VERSION 2 - April 28, 2024")
 
 
131
 
132
  st.write("---------------------------------")
133
 
@@ -658,9 +660,10 @@ with tab1:
658
  st.subheader("(ALL RIGHTS RESERVED)")
659
  st.image('Jan_Bours_2.png', caption='Jan Bours', width=100)
660
  st.write("---------------------------------")
661
- # st.subheader("Chat with Docs - Using AI: 'mixtral-8x7b-32768' Groq Edition (Very Fast!) - VERSION 2 - April 28, 2024")
662
  # llama3-8b-8192 JB TEST;
663
- st.subheader("Chat with Docs - Using AI: 'llama3-8b-8192' Groq Edition (Very Fast!) - VERSION 2 - April 28, 2024")
 
664
 
665
  st.write("---------------------------------")
666
 
@@ -835,7 +838,7 @@ with tab1:
835
  llm = ChatGroq(
836
  temperature=0.2,
837
  groq_api_key=groq_api_key,
838
- model_name='llama3-8b-8192' # 'mixtral-8x7b-32768' # JB TEST 28-04-2024
839
  )
840
 
841
  prompt = ChatPromptTemplate.from_template("""
@@ -896,7 +899,9 @@ with tab1:
896
  "[Keramiek Victor Glazuren Victor Benckhuijsen - YouTube](https://www.youtube.com/@kleienhoop/videos)"
897
 
898
  st.title("💬 Chatbot")
899
- st.caption("🚀 A streamlit chatbot powered by mixtral-8x7b-32768 Groq LLM (VERY FAST !). temperature=0.2")
 
 
900
 
901
  if "messages" not in st.session_state:
902
  st.session_state["messages"] = [{"role": "assistant", "content": "Hoe kan ik U helpen?"}]
 
1
+ # NonToxicGlazeAdvisor_Chat_with_Docs_Groq_Edition_1 - app.py - 30-04-2024
2
 
3
  # STREAMLIT:
4
  # https://www.datacamp.com/tutorial/streamlit:
 
125
  st.subheader("(ALL RIGHTS RESERVED)")
126
  st.image('Jan_Bours_2.png', caption='Jan Bours', width=100)
127
  st.write("---------------------------------")
128
+ # st.subheader("Chat with Docs - Using AI: 'mixtral-8x7b-32768' Groq Edition (Very Fast!) - VERSION 2 - April 30, 2024")
129
  # llama3-8b-8192 JB TEST;
130
+ # st.subheader("Chat with Docs - Using AI: 'llama3-8b-8192' Groq Edition (Very Fast!) - VERSION 2 - April 30, 2024")
131
+ st.subheader("Chat with Docs - Using AI: 'llama3-70b-8192' Groq Edition (Very Fast!) - VERSION 2 - April 30, 2024")
132
+
133
 
134
  st.write("---------------------------------")
135
 
 
660
  st.subheader("(ALL RIGHTS RESERVED)")
661
  st.image('Jan_Bours_2.png', caption='Jan Bours', width=100)
662
  st.write("---------------------------------")
663
+ # st.subheader("Chat with Docs - Using AI: 'mixtral-8x7b-32768' Groq Edition (Very Fast!) - VERSION 2 - April 30, 2024")
664
  # llama3-8b-8192 JB TEST;
665
+ # st.subheader("Chat with Docs - Using AI: 'llama3-8b-8192' Groq Edition (Very Fast!) - VERSION 2 - April 30, 2024")
666
+ st.subheader("Chat with Docs - Using AI: 'llama3-70b-8192' Groq Edition (Very Fast!) - VERSION 2 - April 30, 2024")
667
 
668
  st.write("---------------------------------")
669
 
 
838
  llm = ChatGroq(
839
  temperature=0.2,
840
  groq_api_key=groq_api_key,
841
+ model_name='llama3-70b-8192' # 'llama3-8b-8192' # 'mixtral-8x7b-32768' # JB TEST 28-04-2024
842
  )
843
 
844
  prompt = ChatPromptTemplate.from_template("""
 
899
  "[Keramiek Victor Glazuren Victor Benckhuijsen - YouTube](https://www.youtube.com/@kleienhoop/videos)"
900
 
901
  st.title("💬 Chatbot")
902
+ # st.caption("🚀 A streamlit chatbot powered by mixtral-8x7b-32768 Groq LLM (VERY FAST !). temperature=0.2")
903
+ # llama3-70b-8192
904
+ st.caption("🚀 A streamlit chatbot powered by llama3-70b-8192 Groq LLM (VERY FAST !). temperature=0.2")
905
 
906
  if "messages" not in st.session_state:
907
  st.session_state["messages"] = [{"role": "assistant", "content": "Hoe kan ik U helpen?"}]