BredForCompanionship
commited on
Commit
•
9a8d15e
1
Parent(s):
a6f89e0
Update metric.py
Browse files
metric.py
CHANGED
@@ -79,10 +79,9 @@ def compute(params):
|
|
79 |
model="gpt-3.5-turbo-instruct",
|
80 |
prompt=prompt,
|
81 |
temperature=0,
|
82 |
-
max_tokens=
|
83 |
)
|
84 |
eval_result = response.choices[0].text.strip()
|
85 |
-
print(response)
|
86 |
print('eval_result', eval_result)
|
87 |
score = int(eval_result)
|
88 |
# try:
|
|
|
79 |
model="gpt-3.5-turbo-instruct",
|
80 |
prompt=prompt,
|
81 |
temperature=0,
|
82 |
+
max_tokens=1,
|
83 |
)
|
84 |
eval_result = response.choices[0].text.strip()
|
|
|
85 |
print('eval_result', eval_result)
|
86 |
score = int(eval_result)
|
87 |
# try:
|