Spaces:
Runtime error
Runtime error
jonathanjordan21
commited on
Commit
•
7bb8a21
1
Parent(s):
aef4fb0
Update app.py
Browse files
app.py
CHANGED
@@ -27,10 +27,10 @@ pexels_api_key = os.getenv('pexels_api_key')
|
|
27 |
def pred(product_name, orientation):
|
28 |
folder_name, sentences = pexels.generate_videos(product_name, pexels_api_key, orientation, llm_chain, sum_llm_chain)
|
29 |
utils.combine_videos(folder_name)
|
30 |
-
return
|
31 |
-
'video':os.path.join(folder_name, "Final_Ad_Video.mp4"),
|
32 |
-
|
33 |
-
|
34 |
|
35 |
with gr.Blocks() as demo:
|
36 |
dimension = gr.Dropdown(
|
|
|
27 |
def pred(product_name, orientation):
|
28 |
folder_name, sentences = pexels.generate_videos(product_name, pexels_api_key, orientation, llm_chain, sum_llm_chain)
|
29 |
utils.combine_videos(folder_name)
|
30 |
+
return ["\n".join(sentences), os.path.join(folder_name, "Final_Ad_Video.mp4")]
|
31 |
+
#{'video':os.path.join(folder_name, "Final_Ad_Video.mp4"),
|
32 |
+
# 'captions':"\n".join(sentences)}
|
33 |
+
|
34 |
|
35 |
with gr.Blocks() as demo:
|
36 |
dimension = gr.Dropdown(
|