barunsaha commited on
Commit
e481e40
1 Parent(s): e819c92

Increase the number of images fetched and display probability

Browse files
helpers/image_search.py CHANGED
@@ -12,7 +12,7 @@ import requests
12
 
13
 
14
  REQUEST_TIMEOUT = 12
15
- MAX_PHOTOS = 2
16
 
17
 
18
  # Only show warnings
 
12
 
13
 
14
  REQUEST_TIMEOUT = 12
15
+ MAX_PHOTOS = 3
16
 
17
 
18
  # Only show warnings
helpers/pptx_helper.py CHANGED
@@ -34,8 +34,8 @@ INCHES_0_4 = pptx.util.Inches(0.4)
34
  INCHES_0_3 = pptx.util.Inches(0.3)
35
 
36
  STEP_BY_STEP_PROCESS_MARKER = '>> '
37
- IMAGE_DISPLAY_PROBABILITY = 0.3
38
- FOREGROUND_IMAGE_PROBABILITY = 0.75
39
  SLIDE_NUMBER_REGEX = re.compile(r"^slide[ ]+\d+:", re.IGNORECASE)
40
 
41
 
 
34
  INCHES_0_3 = pptx.util.Inches(0.3)
35
 
36
  STEP_BY_STEP_PROCESS_MARKER = '>> '
37
+ IMAGE_DISPLAY_PROBABILITY = 1 / 3.0
38
+ FOREGROUND_IMAGE_PROBABILITY = 0.8
39
  SLIDE_NUMBER_REGEX = re.compile(r"^slide[ ]+\d+:", re.IGNORECASE)
40
 
41