jonathanjordan21 commited on
Commit
18084d4
1 Parent(s): 19599cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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("Bluetooth Earphone", pexel_api_key, 1920, 1080)
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")