phenomenon1981 commited on
Commit
1b41b1b
·
1 Parent(s): 9f6d9cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def generate(starting_text):
20
  for x in response:
21
  resp = x['generated_text'].strip()
22
  if resp != starting_text and len(resp) > (len(starting_text) + 4) and resp.endswith((":", "-", "—")) is False:
23
- response_list.append(resp+'\n')
24
 
25
  response_end = "\n".join(response_list)
26
  response_end = re.sub('[^ ]+\.[^ ]+','', response_end)
 
20
  for x in response:
21
  resp = x['generated_text'].strip()
22
  if resp != starting_text and len(resp) > (len(starting_text) + 4) and resp.endswith((":", "-", "—")) is False:
23
+ response_list.append(resp)
24
 
25
  response_end = "\n".join(response_list)
26
  response_end = re.sub('[^ ]+\.[^ ]+','', response_end)