Leo Liu commited on
Commit
5b628a3
·
verified ·
1 Parent(s): 49f2ed6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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