prithivMLmods commited on
Commit
2900353
·
verified ·
1 Parent(s): db2ffc3

update app

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -106,7 +106,7 @@ css = """
106
  """
107
 
108
  # Create the Gradio interface with Blocks
109
- with gr.Blocks(theme="bethecloud/storj_theme", css=css) as demo:
110
  gr.Markdown("# **Florence-2 Models Image Captions**")
111
  gr.Markdown(description)
112
  with gr.Row():
@@ -124,4 +124,4 @@ with gr.Blocks(theme="bethecloud/storj_theme", css=css) as demo:
124
  generate_btn.click(fn=describe_image, inputs=[image_input, model_choice], outputs=output)
125
 
126
  # Launch the interface
127
- demo.launch(debug=True, mcp_server=True, ssr_mode=False, show_error=True)
 
106
  """
107
 
108
  # Create the Gradio interface with Blocks
109
+ with gr.Blocks() as demo:
110
  gr.Markdown("# **Florence-2 Models Image Captions**")
111
  gr.Markdown(description)
112
  with gr.Row():
 
124
  generate_btn.click(fn=describe_image, inputs=[image_input, model_choice], outputs=output)
125
 
126
  # Launch the interface
127
+ demo.launch(theme="bethecloud/storj_theme", css=css, debug=True, mcp_server=True, ssr_mode=False, show_error=True)