Update app.py
Browse files
app.py
CHANGED
@@ -251,8 +251,8 @@ if "vector" not in st.session_state:
|
|
251 |
# Chroma.from_documents(documents=chunks, embedding=FastEmbedEmbeddings())
|
252 |
# st.session_state.vector = Chroma.from_documents(st.session_state.documents, st.session_state.embeddings) # JB
|
253 |
|
254 |
-
# print(f"Response time: {time.process_time() - start}")
|
255 |
-
st.write(f"Response time voor: Laden van de PDF documenten / Splitting de teksten / Genereer de Vector Store: {time.process_time() - start} seconds")
|
256 |
|
257 |
st.write("---------------------------------")
|
258 |
|
@@ -321,7 +321,8 @@ with st.sidebar:
|
|
321 |
"[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/streamlit/llm-examples?quickstart=1)"
|
322 |
|
323 |
st.title("💬 Chatbot")
|
324 |
-
st.caption("🚀 A streamlit chatbot powered by mixtral-8x7b-32768 Groq LLM (VERY FAST !)")
|
|
|
325 |
if "messages" not in st.session_state:
|
326 |
st.session_state["messages"] = [{"role": "assistant", "content": "How can I help you?"}]
|
327 |
|
|
|
251 |
# Chroma.from_documents(documents=chunks, embedding=FastEmbedEmbeddings())
|
252 |
# st.session_state.vector = Chroma.from_documents(st.session_state.documents, st.session_state.embeddings) # JB
|
253 |
|
254 |
+
# print(f"Response time: {time.process_time() - start}")
|
255 |
+
st.write(f"Response time voor: Laden van de PDF documenten / Splitting de teksten / Genereer de Vector Store: {time.process_time() - start} seconds")
|
256 |
|
257 |
st.write("---------------------------------")
|
258 |
|
|
|
321 |
"[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/streamlit/llm-examples?quickstart=1)"
|
322 |
|
323 |
st.title("💬 Chatbot")
|
324 |
+
st.caption("🚀 A streamlit chatbot powered by mixtral-8x7b-32768 Groq LLM (VERY FAST !). temperature=0.2")
|
325 |
+
|
326 |
if "messages" not in st.session_state:
|
327 |
st.session_state["messages"] = [{"role": "assistant", "content": "How can I help you?"}]
|
328 |
|