phenomenon1981 commited on
Commit
4596128
·
1 Parent(s): ad77781

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ def generate(starting_text):
12
  set_seed(seed)
13
 
14
  if starting_text == "":
15
- starting_text: str = line[random.randrange(0, len(line))].replace("\n", "").lower().capitalize()
16
  starting_text: str = re.sub(r"\.", '', starting_text)
17
 
18
  response = gpt2_pipe(starting_text, max_length=(len(starting_text) + random.randint(70, 90)), num_return_sequences=1)
 
12
  set_seed(seed)
13
 
14
  if starting_text == "":
15
+ starting_text: str = line[random.randrange(0, len(line))].replace("\n", "").capitalize()
16
  starting_text: str = re.sub(r"\.", '', starting_text)
17
 
18
  response = gpt2_pipe(starting_text, max_length=(len(starting_text) + random.randint(70, 90)), num_return_sequences=1)