Spaces:
Runtime error
Runtime error
Commit
·
3bfa56b
1
Parent(s):
9226486
Update app.py
Browse files
app.py
CHANGED
@@ -29,10 +29,6 @@ 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 |
-
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 |
|
|
|
29 |
|
30 |
def get_response(input_text):
|
31 |
output_text= bert_legal_model(input_text, min_length = 8, ratio = 0.05)
|
|
|
|
|
|
|
|
|
32 |
return output_text
|
33 |
|
34 |
|