Skip to content

Commit

Permalink
Development (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
hetulvp authored Apr 20, 2024
2 parents 522c61c + 9b7168a commit 18b879a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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 18b879a

Please sign in to comment.