Spaces:
Runtime error
Runtime error
Gagan Bhatia
commited on
Commit
•
19db832
1
Parent(s):
502f04f
Update model.py
Browse files- src/models/model.py +2 -2
src/models/model.py
CHANGED
@@ -490,8 +490,8 @@ class Summarization:
|
|
490 |
|
491 |
def evaluate(self, test_df: pd.DataFrame, metrics: str = "rouge"):
|
492 |
metric = load_metric(metrics)
|
493 |
-
input_text = test_df[
|
494 |
-
references = test_df[
|
495 |
references = references.to_list()
|
496 |
|
497 |
predictions = [self.predict(x) for x in tqdm(input_text)]
|
|
|
490 |
|
491 |
def evaluate(self, test_df: pd.DataFrame, metrics: str = "rouge"):
|
492 |
metric = load_metric(metrics)
|
493 |
+
input_text = test_df["input_text"]
|
494 |
+
references = test_df["output_text"]
|
495 |
references = references.to_list()
|
496 |
|
497 |
predictions = [self.predict(x) for x in tqdm(input_text)]
|