Spaces:
Runtime error
Runtime error
File size: 421 Bytes
10a5b65 96c4203 10a5b65 96c4203 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import dagshub
from src.models.model import Summarization
from src.data.make_dataset import make_dataset
def evaluate_model():
"""
Evalute model using rouge measure
"""
test_df = make_dataset(split='test')
model = Summarization()
model.load_model()
results = model.evaluate(test_df=test_df)
with dagshub.dagshub_logger() as logger:
logger.log_metrics(results)
return results
|