Spaces:
Build error
Build error
Update sescore.py
Browse files- sescore.py +1 -0
sescore.py
CHANGED
@@ -122,6 +122,7 @@ class SEScore(evaluate.Metric):
|
|
122 |
from huggingface_hub import snapshot_download
|
123 |
# initialize roberta into str2encoder
|
124 |
comet.encoders.str2encoder['RoBERTa'] = robertaEncoder
|
|
|
125 |
if self.config_name == "default":
|
126 |
destination = snapshot_download(repo_id="xu1998hz/sescore_english_mt", revision="main")
|
127 |
self.scorer = load_from_checkpoint(f'{destination}/checkpoint/sescore_english_mt.ckpt')
|
|
|
122 |
from huggingface_hub import snapshot_download
|
123 |
# initialize roberta into str2encoder
|
124 |
comet.encoders.str2encoder['RoBERTa'] = robertaEncoder
|
125 |
+
print(self.config_name)
|
126 |
if self.config_name == "default":
|
127 |
destination = snapshot_download(repo_id="xu1998hz/sescore_english_mt", revision="main")
|
128 |
self.scorer = load_from_checkpoint(f'{destination}/checkpoint/sescore_english_mt.ckpt')
|