doevent commited on
Commit
342b9f9
β€’
1 Parent(s): f4edbb6

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(50, 80), num_return_sequences=random.randint(20, 30))
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(20, 45), num_return_sequences=random.randint(5, 15))
24
  response_list = []
25
  for x in response:
26
  resp = x['generated_text'].strip()