quyip commited on
Commit
a45c805
·
1 Parent(s): 1d4052e
Files changed (1) hide show
  1. utils/summary_utils.py +2 -2
utils/summary_utils.py CHANGED
@@ -10,12 +10,12 @@ text_to_tags_pipe = pipeline('text2text-generation', model='models/text2tags')
10
 
11
 
12
  def summarize(id: str, text: str):
 
 
13
  if text is None or len(text) < 10:
14
  return {
15
  "ver": AiSummaryVersion
16
  }
17
- print('=================')
18
- print(id)
19
  summary = get_summarization(text) if len(text) > 1000 else text
20
  translated = get_en_translation(summary)
21
  tags = get_tags(translated)
 
10
 
11
 
12
  def summarize(id: str, text: str):
13
+ print('=================')
14
+ print(id)
15
  if text is None or len(text) < 10:
16
  return {
17
  "ver": AiSummaryVersion
18
  }
 
 
19
  summary = get_summarization(text) if len(text) > 1000 else text
20
  translated = get_en_translation(summary)
21
  tags = get_tags(translated)