Spaces:
Runtime error
Runtime error
jonathanjordan21
commited on
Commit
•
18084d4
1
Parent(s):
19599cb
Update app.py
Browse files
app.py
CHANGED
@@ -24,8 +24,8 @@ sum_llm_chain = tag_chain.chain(llm=local_llm)
|
|
24 |
|
25 |
pexels_api_key = os.getenv('pexels_api_key')
|
26 |
|
27 |
-
def pred():
|
28 |
-
folder_name, sentences = pexels.generate_videos(
|
29 |
utils.combine_videos(folder_name)
|
30 |
return {
|
31 |
'video':folder_name,
|
@@ -33,7 +33,7 @@ def pred():
|
|
33 |
}
|
34 |
|
35 |
with gr.Blocks() as demo:
|
36 |
-
textbox = gr.Textbox("Product Name")
|
37 |
captions = gr.Textbox()
|
38 |
video = gr.Video()
|
39 |
btn = gr.Button("Submit")
|
|
|
24 |
|
25 |
pexels_api_key = os.getenv('pexels_api_key')
|
26 |
|
27 |
+
def pred(query):
|
28 |
+
folder_name, sentences = pexels.generate_videos(query, pexel_api_key, 1920, 1080)
|
29 |
utils.combine_videos(folder_name)
|
30 |
return {
|
31 |
'video':folder_name,
|
|
|
33 |
}
|
34 |
|
35 |
with gr.Blocks() as demo:
|
36 |
+
textbox = gr.Textbox(placeholder="Product Name")
|
37 |
captions = gr.Textbox()
|
38 |
video = gr.Video()
|
39 |
btn = gr.Button("Submit")
|