Spaces:
Runtime error
Runtime error
Commit
·
ba5fbe3
1
Parent(s):
35e895f
Update components/pexels.py
Browse files- components/pexels.py +1 -1
components/pexels.py
CHANGED
@@ -77,7 +77,7 @@ def generate_videos(text, api_key, orientation, height, width, model, tokenizer,
|
|
77 |
# Split the paragraph by sentences
|
78 |
# sentences = list(filter(None,[x.strip() for x in re.split(r'[^A-Za-z0-9 -]', text)]))
|
79 |
# print(len(sentences))
|
80 |
-
sentences = list(filter(None,[x.strip() for x in re.split(r'[^A-Za-z -]', custom_chain().invoke(
|
81 |
|
82 |
# Create directory with the name
|
83 |
di = str(datetime.datetime.now())
|
|
|
77 |
# Split the paragraph by sentences
|
78 |
# sentences = list(filter(None,[x.strip() for x in re.split(r'[^A-Za-z0-9 -]', text)]))
|
79 |
# print(len(sentences))
|
80 |
+
sentences = list(filter(None,[x.strip() for x in re.split(r'[^A-Za-z -]', custom_chain().invoke(text))]))
|
81 |
|
82 |
# Create directory with the name
|
83 |
di = str(datetime.datetime.now())
|