multimodalart HF Staff commited on
Commit
81d7320
·
verified ·
1 Parent(s): 2699213

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -236,7 +236,7 @@ CSS = """
236
  .dark .gradio-container { color: var(--body-text-color); }
237
  """
238
 
239
- with gr.Blocks(theme=gr.themes.Citrus(), css=CSS, title="DocSEAM") as demo:
240
  with gr.Column(elem_id="col-container"):
241
  gr.Markdown(
242
  """
@@ -272,12 +272,11 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS, title="DocSEAM") as demo:
272
  label="Max new tokens",
273
  )
274
  with gr.Column(scale=1):
275
- answer_out = gr.Textbox(label="Answer", lines=4, show_copy_button=True)
276
  elapsed_out = gr.Number(label="Inference time (s)", precision=2)
277
  salience_out = gr.Image(
278
  label="Cross-page salience gates (center triplet)",
279
  type="filepath",
280
- show_download_button=True,
281
  )
282
 
283
  gr.Examples(
@@ -318,4 +317,4 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS, title="DocSEAM") as demo:
318
  api_name="answer",
319
  )
320
 
321
- demo.launch(mcp_server=True)
 
236
  .dark .gradio-container { color: var(--body-text-color); }
237
  """
238
 
239
+ with gr.Blocks(title="DocSEAM") as demo:
240
  with gr.Column(elem_id="col-container"):
241
  gr.Markdown(
242
  """
 
272
  label="Max new tokens",
273
  )
274
  with gr.Column(scale=1):
275
+ answer_out = gr.Textbox(label="Answer", lines=4)
276
  elapsed_out = gr.Number(label="Inference time (s)", precision=2)
277
  salience_out = gr.Image(
278
  label="Cross-page salience gates (center triplet)",
279
  type="filepath",
 
280
  )
281
 
282
  gr.Examples(
 
317
  api_name="answer",
318
  )
319
 
320
+ demo.launch(theme=gr.themes.Citrus(), css=CSS, mcp_server=True)