Spaces:
Running
Running
Update app.py
Browse files
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=
|
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:
|