Update app.py
Browse files
app.py
CHANGED
@@ -56,6 +56,8 @@ def clear_history(history):
|
|
56 |
return []
|
57 |
|
58 |
|
|
|
|
|
59 |
def main():
|
60 |
vectorstore = get_chroma_vectorstore(get_SFR_Code_embedding_model(), vectorstore_path)
|
61 |
llm = get_groq_llm("llama-3.3-70b-versatile", "0.0", GROQ_API_KEY)
|
@@ -96,7 +98,6 @@ def main():
|
|
96 |
examples_per_page=3,
|
97 |
)
|
98 |
|
99 |
-
# Use the state to persist chat history between interactions
|
100 |
user_txt.submit(add_text_to_chat_history, [chat_history, user_txt], [chat_history, user_txt]).then(show_history, [chat_history], [chatbot])\
|
101 |
.then(kadi_bot.handle_chat, [chat_history], [chatbot])
|
102 |
submit_btn.click(add_text_to_chat_history, [chat_history, user_txt], [chat_history, user_txt]).then(show_history, [chat_history], [chatbot])\
|
|
|
56 |
return []
|
57 |
|
58 |
|
59 |
+
|
60 |
+
|
61 |
def main():
|
62 |
vectorstore = get_chroma_vectorstore(get_SFR_Code_embedding_model(), vectorstore_path)
|
63 |
llm = get_groq_llm("llama-3.3-70b-versatile", "0.0", GROQ_API_KEY)
|
|
|
98 |
examples_per_page=3,
|
99 |
)
|
100 |
|
|
|
101 |
user_txt.submit(add_text_to_chat_history, [chat_history, user_txt], [chat_history, user_txt]).then(show_history, [chat_history], [chatbot])\
|
102 |
.then(kadi_bot.handle_chat, [chat_history], [chatbot])
|
103 |
submit_btn.click(add_text_to_chat_history, [chat_history, user_txt], [chat_history, user_txt]).then(show_history, [chat_history], [chatbot])\
|