Skip to content

Commit

Permalink
Fix bug which fails push
Browse files Browse the repository at this point in the history
  • Loading branch information
hetulvp committed Apr 20, 2024
1 parent 6839934 commit c67c79e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/update_leaderboard.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
name: Update leaderboard on PR Merge.

on:
push:
# pull_request:
# branches:
# - development
# types:
# [closed]
pull_request:
branches:
- development
types:
[closed]

# on:
# pull_request:
# types: [opened, reopened, synchronize]

jobs:
leaderboard_evaluation:
Expand Down
10 changes: 5 additions & 5 deletions session_2/challenge/scripts/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class G4fModel(Model):

def generate(self, prompt: str) -> str:
"""Completes a prompt using gpt-4 for free model."""
response = g4f.ChatCompletion.create(
model=g4f.models.gpt_4,
messages=[{"role": "user", "content": prompt}],
)
# response = "yes"
# response = g4f.ChatCompletion.create(
# model=g4f.models.gpt_4,
# messages=[{"role": "user", "content": prompt}],
# )
response = "yes"
return response
2 changes: 1 addition & 1 deletion session_2/challenge/submissions/baseline_copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def build_prompt(self, job_description: str) -> str:
prompt = f"""
Say "YES" if the given job description is suitable for
a freshers other wise say "NO".
a freshers other wise say "NO"
{job_description}.
Expand Down

0 comments on commit c67c79e

Please sign in to comment.