Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -124,6 +124,7 @@ async def rollback_last(
|
|
124 |
parameters = {
|
125 |
'model': 'models/chat-bison-001',
|
126 |
'candidate_count': 1,
|
|
|
127 |
'temperature': res_temp,
|
128 |
'top_k': res_topk,
|
129 |
'top_p': res_topp,
|
@@ -181,6 +182,7 @@ async def chat_stream(
|
|
181 |
parameters = {
|
182 |
'model': 'models/chat-bison-001',
|
183 |
'candidate_count': 1,
|
|
|
184 |
'temperature': res_temp,
|
185 |
'top_k': res_topk,
|
186 |
'top_p': res_topp,
|
|
|
124 |
parameters = {
|
125 |
'model': 'models/chat-bison-001',
|
126 |
'candidate_count': 1,
|
127 |
+
'context': global_context,
|
128 |
'temperature': res_temp,
|
129 |
'top_k': res_topk,
|
130 |
'top_p': res_topp,
|
|
|
182 |
parameters = {
|
183 |
'model': 'models/chat-bison-001',
|
184 |
'candidate_count': 1,
|
185 |
+
'context': global_context,
|
186 |
'temperature': res_temp,
|
187 |
'top_k': res_topk,
|
188 |
'top_p': res_topp,
|