Spaces:
Running
on
L4
Running
on
L4
Xu Xuenan
commited on
Commit
·
6a4302b
1
Parent(s):
1dd3df4
Fix caption bug
Browse files
mm_story_agent/video_compose_agent.py
CHANGED
@@ -87,7 +87,7 @@ def split_caption(caption, max_length=30):
|
|
87 |
else:
|
88 |
if current_words:
|
89 |
lines.append(" ".join(current_words))
|
90 |
-
current_words = []
|
91 |
|
92 |
if current_words:
|
93 |
lines.append(" ".join(current_words))
|
|
|
87 |
else:
|
88 |
if current_words:
|
89 |
lines.append(" ".join(current_words))
|
90 |
+
current_words = [word]
|
91 |
|
92 |
if current_words:
|
93 |
lines.append(" ".join(current_words))
|
requirements.txt
CHANGED
@@ -11,5 +11,4 @@ numpy
|
|
11 |
librosa
|
12 |
moviepy
|
13 |
opencv-python
|
14 |
-
git+https://github.com/aliyun/alibabacloud-nls-python-sdk@dev
|
15 |
-
audiocraft
|
|
|
11 |
librosa
|
12 |
moviepy
|
13 |
opencv-python
|
14 |
+
git+https://github.com/aliyun/alibabacloud-nls-python-sdk@dev
|
|