testdeep123 commited on
Commit
e86aa56
·
verified ·
1 Parent(s): 706e84e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -434,7 +434,7 @@ def generate_media(prompt, user_image=None, current_index=0, total_segments=1):
434
  else:
435
  print(f"Google Images search failed for prompt: {prompt}")
436
 
437
- if random.random() < video_clip_probability:
438
  video_file = os.path.join(TEMP_FOLDER, f"{safe_prompt}_video.mp4")
439
  video_url = search_pexels_videos(prompt, PEXELS_API_KEY)
440
  if video_url:
 
434
  else:
435
  print(f"Google Images search failed for prompt: {prompt}")
436
 
437
+ if random.random() < 0.50:
438
  video_file = os.path.join(TEMP_FOLDER, f"{safe_prompt}_video.mp4")
439
  video_url = search_pexels_videos(prompt, PEXELS_API_KEY)
440
  if video_url: