jiuface commited on
Commit
1b13c9a
1 Parent(s): 4e86eac
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -70,7 +70,7 @@ def process_image(image_input, image_url, task_prompt, text_prompt=None, dilate=
70
  response.raise_for_status()
71
  image_input = PIL.Image.open(BytesIO(response.content))
72
  print("fetch image success")
73
-
74
  # start to parse prompt
75
  with calculateDuration("run_florence_inference"):
76
  _, result = run_florence_inference(
@@ -156,4 +156,5 @@ with gr.Blocks() as demo:
156
  show_api=False
157
  )
158
 
 
159
  demo.launch(debug=True, show_error=True)
 
70
  response.raise_for_status()
71
  image_input = PIL.Image.open(BytesIO(response.content))
72
  print("fetch image success")
73
+
74
  # start to parse prompt
75
  with calculateDuration("run_florence_inference"):
76
  _, result = run_florence_inference(
 
156
  show_api=False
157
  )
158
 
159
+ demo.queue()
160
  demo.launch(debug=True, show_error=True)