Spaces:
Running
on
Zero
Running
on
Zero
add queue
Browse files
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)
|