Skip to content

Commit

Permalink
Merge pull request #35 from acmcsufoss/supabase-migration
Browse files Browse the repository at this point in the history
Update size and fix instance of empty list.
  • Loading branch information
boushrabettir authored Aug 5, 2024
2 parents 5c846a5 + 436f057 commit cc68977
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions utility/palm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion utility/scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
load_dotenv()
utils.verify_set_env_variables()

MAX_OPPORTUNITY_LIST_LENGTH = 15
MAX_OPPORTUNITY_LIST_LENGTH = 10

# ----------------- INTERNSHIP DATA -----------------

Expand Down

0 comments on commit cc68977

Please sign in to comment.