Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -197,8 +197,8 @@ def get_pages(indices: List[int]) -> Dict[str, Any]:
|
|
| 197 |
{"images": [{"index": int, "page": int, "image_url": str}], "count": int}
|
| 198 |
"""
|
| 199 |
global images
|
|
|
|
| 200 |
print("indices to get", indices)
|
| 201 |
-
indices = exec(indices)
|
| 202 |
|
| 203 |
if not images:
|
| 204 |
return {"images": [], "count": 0}
|
|
|
|
| 197 |
{"images": [{"index": int, "page": int, "image_url": str}], "count": int}
|
| 198 |
"""
|
| 199 |
global images
|
| 200 |
+
indices = eval(indices)
|
| 201 |
print("indices to get", indices)
|
|
|
|
| 202 |
|
| 203 |
if not images:
|
| 204 |
return {"images": [], "count": 0}
|