Skip to content

Commit 9b6c414

Browse files
committed
2 parents 2f9fcec + cc68977 commit 9b6c414

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

utility/palm.py

+3
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ def gpt_job_analyze(list_of_opps: List[Opportunity], prompt: str) -> List[Opport
103103
for _ in range(MAX_RETRY): # Keep looping until a valid prompt is received
104104
try:
105105
parsed_values = get_parsed_values(prompt)
106+
107+
if len(parsed_values) == 0:
108+
continue
106109
break
107110
except (
108111
json.decoder.JSONDecodeError

utility/scrape.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
load_dotenv()
1212
utils.verify_set_env_variables()
1313

14-
MAX_OPPORTUNITY_LIST_LENGTH = 15
14+
MAX_OPPORTUNITY_LIST_LENGTH = 10
1515

1616
# ----------------- INTERNSHIP DATA -----------------
1717

0 commit comments

Comments
 (0)