djsull commited on
Commit
3803067
1 Parent(s): 9b4cee6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ model = BartForConditionalGeneration.from_pretrained('djsull/aha-kobart-summariz
13
  def predict(text):
14
  text = text
15
  if len(text) < 50:
16
- error = 'query too short"
17
  return error
18
  text = re.sub('\n[0-9].', '\n', text)
19
  text = re.sub('\n-.', '\n', text)
 
13
  def predict(text):
14
  text = text
15
  if len(text) < 50:
16
+ error = "query too short"
17
  return error
18
  text = re.sub('\n[0-9].', '\n', text)
19
  text = re.sub('\n-.', '\n', text)