jonathanjordan21 commited on
Commit
767cc47
1 Parent(s): c21b473

Update components/pexels.py

Browse files
Files changed (1) hide show
  1. components/pexels.py +2 -2
components/pexels.py CHANGED
@@ -30,7 +30,7 @@ def search_pexels(keyword, api_key, orientation='potrait', size='medium', endpoi
30
 
31
 
32
  # Video download function
33
- def download_video(data, parent_path, link, i):
34
  for x in data['videos'][0]['video_files'] :
35
 
36
  #if width != None and x['width'] < width:
@@ -74,7 +74,7 @@ def generate_videos(product, api_key, orientation, llm_chain=None, sum_llm_chain
74
  keyword = sum_llm_chain.run(s)
75
  print(i+1, ":", keyword)
76
  data = search_pexels(keyword, api_key, orientation.lower())
77
- link= download_video(data, prod, links,i)
78
  links.append(link)
79
 
80
  print("Success! videos has been generated")
 
30
 
31
 
32
  # Video download function
33
+ def download_video(data, parent_path, links, i):
34
  for x in data['videos'][0]['video_files'] :
35
 
36
  #if width != None and x['width'] < width:
 
74
  keyword = sum_llm_chain.run(s)
75
  print(i+1, ":", keyword)
76
  data = search_pexels(keyword, api_key, orientation.lower())
77
+ link = download_video(data, prod, links,i)
78
  links.append(link)
79
 
80
  print("Success! videos has been generated")