BredForCompanionship commited on
Commit
0691591
1 Parent(s): 4302cba

Update metric.py

Browse files
Files changed (1) hide show
  1. metric.py +2 -2
metric.py CHANGED
@@ -1,4 +1,4 @@
1
- from openai import APIException, Completion
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 APIException as e:
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