Spaces:
Running
Running
add queue() to prevent timeouts
Browse files
app.py
CHANGED
|
@@ -78,7 +78,7 @@ iface = gr.Interface(
|
|
| 78 |
fn=process_image,
|
| 79 |
inputs=gr.Image(type="pil"), # Adjust the shape as needed
|
| 80 |
outputs="json", # Or any other output format that suits your needs
|
| 81 |
-
)
|
| 82 |
|
| 83 |
# Launch the Gradio app
|
| 84 |
iface.launch()
|
|
|
|
| 78 |
fn=process_image,
|
| 79 |
inputs=gr.Image(type="pil"), # Adjust the shape as needed
|
| 80 |
outputs="json", # Or any other output format that suits your needs
|
| 81 |
+
).queue()
|
| 82 |
|
| 83 |
# Launch the Gradio app
|
| 84 |
iface.launch()
|