Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -100,7 +100,7 @@ if __name__ == "__main__":
|
|
| 100 |
|
| 101 |
with gr.Row():
|
| 102 |
with gr.Column():
|
| 103 |
-
input_image = gr.Image(
|
| 104 |
grounding_caption = gr.Textbox(label="Detection Prompt")
|
| 105 |
run_button = gr.Button(label="Run")
|
| 106 |
with gr.Accordion("Advanced options", open=False):
|
|
@@ -129,5 +129,5 @@ if __name__ == "__main__":
|
|
| 129 |
cache_examples=True,
|
| 130 |
label='Try this example input!'
|
| 131 |
)
|
| 132 |
-
block.launch(share=False,
|
| 133 |
|
|
|
|
| 100 |
|
| 101 |
with gr.Row():
|
| 102 |
with gr.Column():
|
| 103 |
+
input_image = gr.Image(type="pil")
|
| 104 |
grounding_caption = gr.Textbox(label="Detection Prompt")
|
| 105 |
run_button = gr.Button(label="Run")
|
| 106 |
with gr.Accordion("Advanced options", open=False):
|
|
|
|
| 129 |
cache_examples=True,
|
| 130 |
label='Try this example input!'
|
| 131 |
)
|
| 132 |
+
block.launch(share=False, show_error=True)
|
| 133 |
|