Spaces:
Sleeping
Sleeping
🧪☔ Add tests to check for bugs and improve code reliability
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ def get_cat_images(limit: int = 1) -> list:
|
|
| 24 |
Args:
|
| 25 |
limit: Number of images to return between 1 and 100
|
| 26 |
"""
|
| 27 |
-
return limit# to check if the agent numbers correctly, sometimes asking for 3 images return more than 5
|
| 28 |
# Ensure the limit is within the allowed range
|
| 29 |
if limit < 1 or limit > 100:
|
| 30 |
return "Limit must be between 1 and 100."
|
|
|
|
| 24 |
Args:
|
| 25 |
limit: Number of images to return between 1 and 100
|
| 26 |
"""
|
| 27 |
+
return [f"Non-working link: {limit}"]# to check if the agent numbers correctly, sometimes asking for 3 images return more than 5
|
| 28 |
# Ensure the limit is within the allowed range
|
| 29 |
if limit < 1 or limit > 100:
|
| 30 |
return "Limit must be between 1 and 100."
|