Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ def fetch_clean_videos(keywords, api_key, scan_enabled):
|
|
80 |
max_attempts = 3
|
81 |
for attempt in range(max_attempts):
|
82 |
try:
|
83 |
-
results = list(search_items(ia_query
|
84 |
break
|
85 |
except ReadTimeout:
|
86 |
if attempt < max_attempts - 1:
|
|
|
80 |
max_attempts = 3
|
81 |
for attempt in range(max_attempts):
|
82 |
try:
|
83 |
+
results = list(search_items(ia_query))[:50]
|
84 |
break
|
85 |
except ReadTimeout:
|
86 |
if attempt < max_attempts - 1:
|