doevent commited on
Commit
f48907d
1 Parent(s): 2403a13

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
  starting_text: str = re.sub(r"[,:\-–.!;?_]", '', starting_text)
21
  print(starting_text)
22
 
23
- response = gpt2_pipe(starting_text, max_length=random.randint(20, 45), num_return_sequences=random.randint(5, 15))
24
  response_list = []
25
  for x in response:
26
  resp = x['generated_text'].strip()
 
20
  starting_text: str = re.sub(r"[,:\-–.!;?_]", '', starting_text)
21
  print(starting_text)
22
 
23
+ response = gpt2_pipe(starting_text, max_length=random.randint(60, 90), num_return_sequences=8)
24
  response_list = []
25
  for x in response:
26
  resp = x['generated_text'].strip()