manu commited on
Commit
bf520fb
·
verified ·
1 Parent(s): c108d03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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}