multimodalart HF Staff commited on
Commit
fdd2c8f
·
verified ·
1 Parent(s): c06b9e1

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -167,7 +167,7 @@ CSS = """
167
  .dark .gradio-container { color: var(--body-text-color); }
168
  """
169
 
170
- with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
171
  with gr.Column(elem_id="col-container"):
172
  gr.Markdown(
173
  """
@@ -199,9 +199,7 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
199
  run_btn = gr.Button("Locate", variant="primary")
200
  with gr.Column():
201
  image_out = gr.Image(type="pil", label="Grounded region")
202
- text_out = gr.Textbox(
203
- label="Decoded coordinates", lines=4, show_copy_button=True
204
- )
205
 
206
  gr.Examples(
207
  examples=[
@@ -225,4 +223,4 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
225
  api_name="ground",
226
  )
227
 
228
- demo.launch(mcp_server=True)
 
167
  .dark .gradio-container { color: var(--body-text-color); }
168
  """
169
 
170
+ with gr.Blocks() as demo:
171
  with gr.Column(elem_id="col-container"):
172
  gr.Markdown(
173
  """
 
199
  run_btn = gr.Button("Locate", variant="primary")
200
  with gr.Column():
201
  image_out = gr.Image(type="pil", label="Grounded region")
202
+ text_out = gr.Textbox(label="Decoded coordinates", lines=4)
 
 
203
 
204
  gr.Examples(
205
  examples=[
 
223
  api_name="ground",
224
  )
225
 
226
+ demo.launch(theme=gr.themes.Citrus(), css=CSS, mcp_server=True)