diff --git a/utility/palm.py b/utility/palm.py index 89b48a1..26e680e 100644 --- a/utility/palm.py +++ b/utility/palm.py @@ -103,6 +103,9 @@ def gpt_job_analyze(list_of_opps: List[Opportunity], prompt: str) -> List[Opport for _ in range(MAX_RETRY): # Keep looping until a valid prompt is received try: parsed_values = get_parsed_values(prompt) + + if len(parsed_values) == 0: + continue break except ( json.decoder.JSONDecodeError diff --git a/utility/scrape.py b/utility/scrape.py index 85e4d98..822894f 100644 --- a/utility/scrape.py +++ b/utility/scrape.py @@ -11,7 +11,7 @@ load_dotenv() utils.verify_set_env_variables() -MAX_OPPORTUNITY_LIST_LENGTH = 15 +MAX_OPPORTUNITY_LIST_LENGTH = 10 # ----------------- INTERNSHIP DATA -----------------