Spaces:
Build error
Build error
Update app.py
Browse files3 parameter added
app.py
CHANGED
@@ -48,8 +48,8 @@ llama = Llama.from_pretrained(
|
|
48 |
|
49 |
def respond(
|
50 |
message,
|
51 |
-
|
52 |
-
|
53 |
):
|
54 |
# Construct the prompt
|
55 |
prompt = f"{inference_params['pre_prompt_prefix']}{inference_params['pre_prompt']}\n\n{inference_params['input_prefix']}{message}{inference_params['input_suffix']}"
|
|
|
48 |
|
49 |
def respond(
|
50 |
message,
|
51 |
+
history: list[tuple[str, str]],
|
52 |
+
system_message,
|
53 |
):
|
54 |
# Construct the prompt
|
55 |
prompt = f"{inference_params['pre_prompt_prefix']}{inference_params['pre_prompt']}\n\n{inference_params['input_prefix']}{message}{inference_params['input_suffix']}"
|