Skip to content

Commit

Permalink
Update chatgpt.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ChonghaoSima authored Mar 20, 2024
1 parent 01cf687 commit f4346a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions challenge/chatgpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class ChatGPT:
def __init__(self):
openai.api_key = ""
openai.api_key = "you need to use your own openai key for evaluation on your local machine"

def call_chatgpt(self, chatgpt_messages, max_tokens=40, model="gpt-3.5-turbo"):
response = openai.chat.completions.create(
Expand Down Expand Up @@ -53,4 +53,4 @@ def forward(self, answer, GT):

eval = ChatGPT()
scores = eval.forward(prediction, GT)
print(scores)
print(scores)

0 comments on commit f4346a5

Please sign in to comment.