Nymbo commited on
Commit
c92323a
·
verified ·
1 Parent(s): 4add2a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -4
app.py CHANGED
@@ -419,7 +419,9 @@ fetch_interface = gr.Interface(
419
  ],
420
  outputs=gr.Markdown(label="Extracted Summary"),
421
  title="Fetch Webpage",
422
- description="Extract title, key metadata, readable text, and links. No noisy HTML.",
 
 
423
  api_description=(
424
  "Fetch a web page and return a compact Markdown summary with title, key "
425
  "metadata, readable body text, and outbound links. Parameters let you "
@@ -443,7 +445,9 @@ concise_interface = gr.Interface(
443
  ],
444
  outputs=gr.Textbox(label="Results (JSONL)", interactive=False),
445
  title="DuckDuckGo Search",
446
- description="Emits JSONL with short keys (t,u[,s]). Defaults avoid snippets and duplicate domains.",
 
 
447
  api_description=(
448
  "Run a DuckDuckGo search and return newline-delimited JSON with short keys: "
449
  "t=title, u=url, optional s=snippet. Options control result count, "
@@ -462,7 +466,9 @@ code_interface = gr.Interface(
462
  inputs=gr.Code(label="Python Code", language="python"),
463
  outputs=gr.Textbox(label="Output"),
464
  title="Python Code Executor",
465
- description="Execute Python code and see the output. This app is also an MCP server for LLMs.",
 
 
466
  allow_flagging="never",
467
  theme="Nymbo/Nymbo_Theme",
468
  )
@@ -475,8 +481,13 @@ demo = gr.TabbedInterface(
475
  "DuckDuckGo Search",
476
  "Python Code Executor",
477
  ],
478
- title="Web MCP — Fetch, Search, and Code Execution.",
479
  theme="Nymbo/Nymbo_Theme",
 
 
 
 
 
480
  )
481
 
482
  # Launch the UI and expose all functions as MCP tools in one server
 
419
  ],
420
  outputs=gr.Markdown(label="Extracted Summary"),
421
  title="Fetch Webpage",
422
+ description=(
423
+ "<div style=\"text-align:center\">Extract title, key metadata, readable text, and links. No noisy HTML.</div>"
424
+ ),
425
  api_description=(
426
  "Fetch a web page and return a compact Markdown summary with title, key "
427
  "metadata, readable body text, and outbound links. Parameters let you "
 
445
  ],
446
  outputs=gr.Textbox(label="Results (JSONL)", interactive=False),
447
  title="DuckDuckGo Search",
448
+ description=(
449
+ "<div style=\"text-align:center\">Emits JSONL with short keys (t,u[,s]). Defaults avoid snippets and duplicate domains.</div>"
450
+ ),
451
  api_description=(
452
  "Run a DuckDuckGo search and return newline-delimited JSON with short keys: "
453
  "t=title, u=url, optional s=snippet. Options control result count, "
 
466
  inputs=gr.Code(label="Python Code", language="python"),
467
  outputs=gr.Textbox(label="Output"),
468
  title="Python Code Executor",
469
+ description=(
470
+ "<div style=\"text-align:center\">Execute Python code and see the output. This app is also an MCP server for LLMs.</div>"
471
+ ),
472
  allow_flagging="never",
473
  theme="Nymbo/Nymbo_Theme",
474
  )
 
481
  "DuckDuckGo Search",
482
  "Python Code Executor",
483
  ],
484
+ title="Tools MCP.",
485
  theme="Nymbo/Nymbo_Theme",
486
+ css="""
487
+ .gradio-container h1 {
488
+ text-align: center;
489
+ }
490
+ """,
491
  )
492
 
493
  # Launch the UI and expose all functions as MCP tools in one server