Spaces:
Running
Running
Update app.py
#2
by
p20523810
- opened
app.py
CHANGED
|
@@ -75,7 +75,7 @@ async def search_web(
|
|
| 75 |
# Validate and constrain num_results
|
| 76 |
if num_results is None:
|
| 77 |
num_results = 4
|
| 78 |
-
num_results = max(1, min(
|
| 79 |
|
| 80 |
# Validate search_type
|
| 81 |
if search_type not in ["search", "news"]:
|
|
|
|
| 75 |
# Validate and constrain num_results
|
| 76 |
if num_results is None:
|
| 77 |
num_results = 4
|
| 78 |
+
num_results = max(1, min(30, num_results))
|
| 79 |
|
| 80 |
# Validate search_type
|
| 81 |
if search_type not in ["search", "news"]:
|