Spaces:
Runtime error
Runtime error
jonathanjordan21
commited on
Commit
•
f45e492
1
Parent(s):
0e7db3f
Update components/pexels.py
Browse files- components/pexels.py +1 -1
components/pexels.py
CHANGED
@@ -79,7 +79,7 @@ def generate_videos(text, api_key, orientation, height, width, model, tokenizer,
|
|
79 |
# sentences = list(filter(None,[x.strip() for x in re.split(r'[^A-Za-z0-9 -]', text)]))
|
80 |
# print(len(sentences))
|
81 |
# sentences = list(filter(None,[x.strip() for x in re.split(r'[^A-Za-z -]', custom_chain().invoke(text))]))
|
82 |
-
sentences = list([x.split('-')[0].strip() for x in filter(lambda x:'-' in x,re.split(r'[^A-Za-z -]',
|
83 |
|
84 |
# Create directory with the name
|
85 |
di = str(datetime.datetime.now())
|
|
|
79 |
# sentences = list(filter(None,[x.strip() for x in re.split(r'[^A-Za-z0-9 -]', text)]))
|
80 |
# print(len(sentences))
|
81 |
# sentences = list(filter(None,[x.strip() for x in re.split(r'[^A-Za-z -]', custom_chain().invoke(text))]))
|
82 |
+
sentences = list([x.split('-')[0].strip() for x in filter(lambda x:'-' in x,re.split(r'[^A-Za-z -]', custom_chain().invoke(text)))])
|
83 |
|
84 |
# Create directory with the name
|
85 |
di = str(datetime.datetime.now())
|