Spaces:
Runtime error
Runtime error
change pathes of assets
Browse files- codebleu.py +2 -2
codebleu.py
CHANGED
@@ -116,9 +116,9 @@ class codebleu(evaluate.Metric):
|
|
116 |
# TODO: Download external resources if needed
|
117 |
# source CodeBLEU/parser/build.sh
|
118 |
# print(dl_manager)
|
119 |
-
self.kw_dir = dl_manager.download_and_extract("keywords.tar.gz")
|
120 |
print("Downloaded keywords to", self.kw_dir)
|
121 |
-
self.langso_dir = dl_manager.download("my-languages.so")
|
122 |
print("Downloaded languages.so to", self.langso_dir)
|
123 |
|
124 |
def _compute(self, predictions, references, lang = "python", tokenizer=None, params="0.25,0.25,0.25,0.25"):
|
|
|
116 |
# TODO: Download external resources if needed
|
117 |
# source CodeBLEU/parser/build.sh
|
118 |
# print(dl_manager)
|
119 |
+
self.kw_dir = dl_manager.download_and_extract("https://huggingface.co/spaces/dvitel/codebleu/resolve/main/keywords.tar.gz")
|
120 |
print("Downloaded keywords to", self.kw_dir)
|
121 |
+
self.langso_dir = dl_manager.download("https://huggingface.co/spaces/dvitel/codebleu/resolve/main/my-languages.so")
|
122 |
print("Downloaded languages.so to", self.langso_dir)
|
123 |
|
124 |
def _compute(self, predictions, references, lang = "python", tokenizer=None, params="0.25,0.25,0.25,0.25"):
|