arithescientist commited on
Commit
b4a2027
·
1 Parent(s): 933f496

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -29,7 +29,10 @@ bert_legal_model = Summarizer(custom_model=custom_model, custom_tokenizer=custom
29
 
30
  def get_response(input_text):
31
  output_text= bert_legal_model(input_text, min_length = 8, ratio = 0.05)
32
-
 
 
 
33
  return output_text
34
 
35
 
 
29
 
30
  def get_response(input_text):
31
  output_text= bert_legal_model(input_text, min_length = 8, ratio = 0.05)
32
+ output_text = output_text.replace(' ',' ')
33
+ output_text = output_text .replace(',.',',')
34
+ output_text = output_text .replace('\n',' ')
35
+ output_text = output_text .replace('..','.')
36
  return output_text
37
 
38