5m4ck3r commited on
Commit
188d53a
1 Parent(s): 67ed2e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ def genPrompt(text: str, total: int):
8
  total = int(total)
9
  ret = None
10
  for i in range(0, total):
11
- txt = pipe(text, max_length=1000, min_length=30)[0].get("generated_text").replace("\n", " ")
12
  if not ret:
13
  ret = txt
14
  else:
 
8
  total = int(total)
9
  ret = None
10
  for i in range(0, total):
11
+ txt = pipe(text, max_length=500, min_length=50)[0].get("generated_text").replace("\n", " ")
12
  if not ret:
13
  ret = txt
14
  else: