Spaces:
Running
Running
ryanrwatkins
commited on
Commit
•
4fb01e9
1
Parent(s):
61de92f
Update app.py
Browse files
app.py
CHANGED
@@ -119,15 +119,16 @@ def submit_message(prompt, prompt_template, temperature, max_tokens, context_len
|
|
119 |
prompt_msg = { "role": "user", "content": prompt }
|
120 |
|
121 |
|
122 |
-
|
123 |
|
124 |
-
|
125 |
-
|
|
|
126 |
|
127 |
|
128 |
query = str(system_prompt + history + [prompt_msg])
|
129 |
|
130 |
-
docs = new_docsearch.similarity_search(query)
|
131 |
|
132 |
gen_ai = ChatGoogleGenerativeAI(model="gemini-pro")
|
133 |
response = gen_ai.invoke(
|
|
|
119 |
prompt_msg = { "role": "user", "content": prompt }
|
120 |
|
121 |
|
122 |
+
# The embeddings file has to be remade since the serialization is no long compatible
|
123 |
|
124 |
+
|
125 |
+
# with open("embeddings.pkl", 'rb') as f:
|
126 |
+
# new_docsearch = pickle.load(f)
|
127 |
|
128 |
|
129 |
query = str(system_prompt + history + [prompt_msg])
|
130 |
|
131 |
+
# docs = new_docsearch.similarity_search(query)
|
132 |
|
133 |
gen_ai = ChatGoogleGenerativeAI(model="gemini-pro")
|
134 |
response = gen_ai.invoke(
|