Manel commited on
Commit
de4430c
·
verified ·
1 Parent(s): 57af1e0

update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -190,6 +190,8 @@ def post_process(response):
190
  if response[-1] != '.':
191
  sentences = response.split('.')
192
  del sentences[-1]
 
 
193
  return '.'.join(sentences) + '.'
194
  return response
195
 
 
190
  if response[-1] != '.':
191
  sentences = response.split('.')
192
  del sentences[-1]
193
+ if not sentences[-1].isalpha():
194
+ del sentences[-1]
195
  return '.'.join(sentences) + '.'
196
  return response
197