Spaces:
Runtime error
Runtime error
jonathanjordan21
commited on
Commit
•
66e09ed
1
Parent(s):
e9e9f10
Update app.py
Browse files
app.py
CHANGED
@@ -32,9 +32,9 @@ def pred(product_name, orientation):
|
|
32 |
orientation = "square"
|
33 |
height = 1080
|
34 |
width = 1080
|
35 |
-
folder_name, sentences = pexels.generate_videos(product_name, pexels_api_key, orientation, height, width, model, tokenizer, model2, tokenizer2, text_cls)
|
36 |
gc.collect()
|
37 |
-
utils.combine_videos(folder_name)
|
38 |
|
39 |
vid = os.path.join(folder_name,"Final_Ad_Video.mp4")
|
40 |
spe = "x.wav"
|
|
|
32 |
orientation = "square"
|
33 |
height = 1080
|
34 |
width = 1080
|
35 |
+
folder_name, sentences, length_speech = pexels.generate_videos(product_name, pexels_api_key, orientation, height, width, model, tokenizer, model2, tokenizer2, text_cls)
|
36 |
gc.collect()
|
37 |
+
utils.combine_videos(folder_name, length_speech)
|
38 |
|
39 |
vid = os.path.join(folder_name,"Final_Ad_Video.mp4")
|
40 |
spe = "x.wav"
|