Update metric.py
Browse files
metric.py
CHANGED
@@ -75,7 +75,7 @@ def compute(params):
|
|
75 |
|
76 |
prompt=f"Give me a score from 1 to 10 (higher is better) judging how similar these two captions are. Caption one: {answer}. Caption two: {label}\nScore:"
|
77 |
|
78 |
-
response = client.
|
79 |
engine="gpt-3.5-turbo-instruct",
|
80 |
prompt=prompt,
|
81 |
temperature=0,
|
|
|
75 |
|
76 |
prompt=f"Give me a score from 1 to 10 (higher is better) judging how similar these two captions are. Caption one: {answer}. Caption two: {label}\nScore:"
|
77 |
|
78 |
+
response = client.completions.create(
|
79 |
engine="gpt-3.5-turbo-instruct",
|
80 |
prompt=prompt,
|
81 |
temperature=0,
|