Upload handler.py
Browse files- handler.py +3 -3
handler.py
CHANGED
|
@@ -82,9 +82,9 @@ def generate(
|
|
| 82 |
end_sequences: list[str] = ["[INST]", "[/INST]", "\n"]
|
| 83 |
) -> dict:
|
| 84 |
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
# Check if the system_prompt is provided, else construct it from instruction, conclusions, and context
|
| 89 |
if not system_prompt and instruction is not None and conclusions is not None and context is not None:
|
| 90 |
system_prompt = "Instruction: {}\nConclusions:\n".format(instruction)
|
|
|
|
| 82 |
end_sequences: list[str] = ["[INST]", "[/INST]", "\n"]
|
| 83 |
) -> dict:
|
| 84 |
|
| 85 |
+
LOGGER.info(f"instruction: {instruction}")
|
| 86 |
+
LOGGER.info(f"conclusions: {conclusions}")
|
| 87 |
+
LOGGER.info(f"context: {context}")
|
| 88 |
# Check if the system_prompt is provided, else construct it from instruction, conclusions, and context
|
| 89 |
if not system_prompt and instruction is not None and conclusions is not None and context is not None:
|
| 90 |
system_prompt = "Instruction: {}\nConclusions:\n".format(instruction)
|