8b14993 1ebd2ab
1
2
3
4
5
6
7
8
9
10
11
from .model import Summarization def predict_model(text): """ Predict the summary of the given text. """ model = Summarization() model.load_model() pre_summary = model.predict(text) return pre_summary