Gabriel commited on
Commit
efdb17e
·
verified ·
1 Parent(s): 549f97a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -8,7 +8,7 @@ from zipfile import ZipFile
8
 
9
  def get_image_ids(batch_id: str) -> list[str]:
10
  """A list of image IDs in the given batch"""
11
- response = requests.get(f"https://iiifintern.ra.se/arkis!{batch_id}/manifest")
12
  response.raise_for_status()
13
  response = response.json()
14
  return [item["id"].split("!")[1][:14] for item in response["items"]]
@@ -85,4 +85,6 @@ with gr.Blocks() as app:
85
  outputs=[output_file]
86
  )
87
 
 
 
88
  app.launch()
 
8
 
9
  def get_image_ids(batch_id: str) -> list[str]:
10
  """A list of image IDs in the given batch"""
11
+ response = requests.get(f"https://lbiiif.riksarkivet.se/arkis!{batch_id}/manifest")
12
  response.raise_for_status()
13
  response = response.json()
14
  return [item["id"].split("!")[1][:14] for item in response["items"]]
 
85
  outputs=[output_file]
86
  )
87
 
88
+ app.queue(max_size=10)
89
+
90
  app.launch()