Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -132,8 +132,8 @@ def submit_message(prompt, prompt_template, temperature, max_tokens, context_len
|
|
132 |
|
133 |
gen_ai = ChatGoogleGenerativeAI(model="gemini-pro", temperature=0.7, top_p=0.85)
|
134 |
response = gen_ai.invoke(
|
135 |
-
input=prompt,
|
136 |
-
context=history,
|
137 |
#max_tokens=max_tokens, # for open ai only
|
138 |
#temperature=temperature # for open ai only
|
139 |
)
|
|
|
132 |
|
133 |
gen_ai = ChatGoogleGenerativeAI(model="gemini-pro", temperature=0.7, top_p=0.85)
|
134 |
response = gen_ai.invoke(
|
135 |
+
input=history + prompt,
|
136 |
+
#context=history,
|
137 |
#max_tokens=max_tokens, # for open ai only
|
138 |
#temperature=temperature # for open ai only
|
139 |
)
|