Spaces:
Runtime error
Runtime error
fixes
Browse files- Makefile +2 -1
- src/models/model.py +2 -3
Makefile
CHANGED
@@ -38,7 +38,8 @@ lint:
|
|
38 |
|
39 |
## Upload Data to default DVC remote
|
40 |
push:
|
41 |
-
dvc push
|
|
|
42 |
|
43 |
## Download Data from default DVC remote
|
44 |
pull:
|
|
|
38 |
|
39 |
## Upload Data to default DVC remote
|
40 |
push:
|
41 |
+
dvc push -r origin
|
42 |
+
|
43 |
|
44 |
## Download Data from default DVC remote
|
45 |
pull:
|
src/models/model.py
CHANGED
@@ -474,12 +474,11 @@ class Summarization:
|
|
474 |
metrics: str = "rouge"
|
475 |
):
|
476 |
metric = load_metric(metrics)
|
477 |
-
input_text = test_df['input_text']
|
478 |
-
references = test_df['output_text']
|
479 |
references = references.to_list()
|
480 |
|
481 |
predictions = [self.predict(x) for x in input_text]
|
482 |
-
print(type(predictions), type(references))
|
483 |
|
484 |
results = metric.compute(predictions=predictions, references=references)
|
485 |
|
|
|
474 |
metrics: str = "rouge"
|
475 |
):
|
476 |
metric = load_metric(metrics)
|
477 |
+
input_text = test_df['input_text']
|
478 |
+
references = test_df['output_text']
|
479 |
references = references.to_list()
|
480 |
|
481 |
predictions = [self.predict(x) for x in input_text]
|
|
|
482 |
|
483 |
results = metric.compute(predictions=predictions, references=references)
|
484 |
|