arithescientist commited on
Commit
55c0262
·
1 Parent(s): 8c52086

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -36,9 +36,9 @@ def pdf_to_text(file_obj):
36
 
37
  output_text= bert_legal_model(text, min_length = 8, ratio = 0.05)
38
  output_text = output_text.replace(' ',' ')
39
- output_text = output_text .replace(',.',',')
40
- output_text = output_text .replace('\n',' ')
41
- output_text = output_text .replace('..','.')
42
 
43
  pdf = FPDF()
44
 
 
36
 
37
  output_text= bert_legal_model(text, min_length = 8, ratio = 0.05)
38
  output_text = output_text.replace(' ',' ')
39
+ output_text = output_text.replace(',.',',')
40
+ output_text = output_text.replace('\n',' ')
41
+ output_text = output_text.replace('..','.')
42
 
43
  pdf = FPDF()
44