Leo Liu commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,7 +49,7 @@ Output: "Little fox Luna found glowing mushrooms deep in the forest. They were f
|
|
| 49 |
story = raw_output
|
| 50 |
|
| 51 |
# 智能截断机制
|
| 52 |
-
target_length = min(max(len(story.split()), 150)
|
| 53 |
return " ".join(story.split()[:target_length])
|
| 54 |
|
| 55 |
|
|
|
|
| 49 |
story = raw_output
|
| 50 |
|
| 51 |
# 智能截断机制
|
| 52 |
+
target_length = min(max(len(story.split()), 50), 150)
|
| 53 |
return " ".join(story.split()[:target_length])
|
| 54 |
|
| 55 |
|