From 20dd3e878630fcef19750de43196c8f09f03bf8e Mon Sep 17 00:00:00 2001 From: Boushra Bettir <116927138+boushrabettir@users.noreply.github.com> Date: Sat, 21 Oct 2023 15:22:35 -0700 Subject: [PATCH] Hot fix - Assign response to empty list. --- utility/palm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utility/palm.py b/utility/palm.py index 170b9de..0a66404 100644 --- a/utility/palm.py +++ b/utility/palm.py @@ -32,7 +32,7 @@ def current_model_inuse() -> any: def parse_gpt_values(gpt_response: str) -> List[bool]: """Helper function to parse the gpt response from a str -> List[bool]""" - response: List[bool] + response: List[bool] = [] for _ in range(MAX_RETRY): try: