arithescientist commited on
Commit
903a7c4
·
1 Parent(s): 87c8857

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -28,19 +28,19 @@ bert_legal_model = Summarizer(model = "distilbert-base-uncased", custom_model=cu
28
  print('Using model {}\n'.format(model_name))
29
 
30
 
 
31
  def lincoln(content):
32
 
33
  bert_legal_model(content)
 
34
  summary = bert_legal_model(content, min_length = 8, ratio = 0.05)
35
  # summary = tokenizer_t5.decode(summary_ids[0], skip_special_tokens=True)
36
- summary_text += str(summary) + "\n\n"
37
  print("Summary:")
38
  print(summary)
39
- all_text = str(summary_text)
40
-
41
  return all_text
42
 
43
-
44
  iface = gr.Interface(
45
  lincoln,
46
  "text",
 
28
  print('Using model {}\n'.format(model_name))
29
 
30
 
31
+
32
  def lincoln(content):
33
 
34
  bert_legal_model(content)
35
+
36
  summary = bert_legal_model(content, min_length = 8, ratio = 0.05)
37
  # summary = tokenizer_t5.decode(summary_ids[0], skip_special_tokens=True)
 
38
  print("Summary:")
39
  print(summary)
40
+ all_text = str(summary)
41
+
42
  return all_text
43
 
 
44
  iface = gr.Interface(
45
  lincoln,
46
  "text",