dreamdrop-art commited on
Commit
c6c49bf
1 Parent(s): 382c7ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -447,7 +447,7 @@ with gr.Blocks(css=css) as demo:
447
  if starting_text == "":
448
  starting_text: str = line[random.randrange(0, len(line))].replace("\n", "").lower().capitalize()
449
  starting_text: str = re.sub(r"[,:\-–.!;?_]", '', starting_text)
450
- response = gpt2_pipe(starting_text, max_length=(len(starting_text) + random.randint(60, 90)), num_return_sequences=4)
451
  response_list = []
452
  for x in response:
453
  resp = x['generated_text'].strip()
 
447
  if starting_text == "":
448
  starting_text: str = line[random.randrange(0, len(line))].replace("\n", "").lower().capitalize()
449
  starting_text: str = re.sub(r"[,:\-–.!;?_]", '', starting_text)
450
+ response = gpt2_pipe(starting_text, max_length=(len(starting_text) + random.randint(60, 90)), num_return_sequences=1)
451
  response_list = []
452
  for x in response:
453
  resp = x['generated_text'].strip()