Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -155,7 +155,7 @@ def generate(
|
|
155 |
if len(past_messages) < 1:
|
156 |
prompt = get_inference_prompt(messages=[{"role": "user", "content": user_message}], model_name=model_name)
|
157 |
else:
|
158 |
-
prompt =
|
159 |
|
160 |
generate_kwargs = {
|
161 |
"temperature": temperature,
|
|
|
155 |
if len(past_messages) < 1:
|
156 |
prompt = get_inference_prompt(messages=[{"role": "user", "content": user_message}], model_name=model_name)
|
157 |
else:
|
158 |
+
prompt = get_inference_prompt(messages=past_messages + [{"role": "user", "content": user_message}], model_name=model_name)
|
159 |
|
160 |
generate_kwargs = {
|
161 |
"temperature": temperature,
|