BredForCompanionship
commited on
Update metric.py
Browse files
metric.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
from openai import
|
2 |
openai.api_key = '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'
|
3 |
|
4 |
import pandas as pd
|
@@ -41,7 +41,7 @@ def compute(params):
|
|
41 |
|
42 |
public_score = int(response['choices'][0]['text'].strip())
|
43 |
|
44 |
-
except
|
45 |
print("Error:", e)
|
46 |
|
47 |
private_score = public_score
|
|
|
1 |
+
from openai import Completion
|
2 |
openai.api_key = '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'
|
3 |
|
4 |
import pandas as pd
|
|
|
41 |
|
42 |
public_score = int(response['choices'][0]['text'].strip())
|
43 |
|
44 |
+
except:
|
45 |
print("Error:", e)
|
46 |
|
47 |
private_score = public_score
|