Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -134,7 +134,7 @@ florence_tasks = [
|
|
| 134 |
url = "https://huggingface.co/datasets/merve/vlm_test_images/resolve/main/venice.jpg?download=true"
|
| 135 |
example_image = Image.open(requests.get(url, stream=True).raw).convert("RGB")
|
| 136 |
|
| 137 |
-
with gr.Blocks(
|
| 138 |
gr.Markdown("# **Florence-2 Vision Models**", elem_id="main-title")
|
| 139 |
gr.Markdown("Select a model, upload an image, choose a task, and click Submit to see the results.")
|
| 140 |
|
|
@@ -172,4 +172,4 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
|
| 172 |
)
|
| 173 |
|
| 174 |
if __name__ == "__main__":
|
| 175 |
-
demo.queue().launch(debug=True, mcp_server=True, ssr_mode=False, show_error=True)
|
|
|
|
| 134 |
url = "https://huggingface.co/datasets/merve/vlm_test_images/resolve/main/venice.jpg?download=true"
|
| 135 |
example_image = Image.open(requests.get(url, stream=True).raw).convert("RGB")
|
| 136 |
|
| 137 |
+
with gr.Blocks() as demo:
|
| 138 |
gr.Markdown("# **Florence-2 Vision Models**", elem_id="main-title")
|
| 139 |
gr.Markdown("Select a model, upload an image, choose a task, and click Submit to see the results.")
|
| 140 |
|
|
|
|
| 172 |
)
|
| 173 |
|
| 174 |
if __name__ == "__main__":
|
| 175 |
+
demo.queue().launch(css=css, theme=steel_blue_theme, debug=True, mcp_server=True, ssr_mode=False, show_error=True)
|