mirror of https://github.com/kubeflow/examples.git
Rename issue_summarization.py to IssueSummarization.py (#68)
* Rename issue_summarization.py to IssueSummarization.py * The module name is supposed to be the same as the class name * Fix the predict method signature * Fix lint
This commit is contained in:
parent
a4576e48f1
commit
e3b826a5af
|
@ -21,5 +21,5 @@ class IssueSummarization(object):
|
|||
decoder_preprocessor=title_pp,
|
||||
seq2seq_model=load_model('seq2seq_model_tutorial.h5'))
|
||||
|
||||
def predict(self, input_text):
|
||||
def predict(self, input_text, feature_names): # pylint: disable=unused-argument
|
||||
return np.asarray([[self.model.generate_issue_title(body[0])[1]] for body in input_text])
|
Loading…
Reference in New Issue