Update app.py
Browse files
app.py
CHANGED
|
@@ -576,7 +576,7 @@ fetch_interface = gr.Interface(
|
|
| 576 |
"control verbosity, whether to include metadata/text/links, and limits "
|
| 577 |
"for characters and number of links."
|
| 578 |
),
|
| 579 |
-
|
| 580 |
fill_width=True,
|
| 581 |
)
|
| 582 |
|
|
@@ -601,7 +601,7 @@ concise_interface = gr.Interface(
|
|
| 601 |
"t=title, u=url, optional s=snippet. Options control result count, "
|
| 602 |
"snippet inclusion and length, domain deduping, and title length."
|
| 603 |
),
|
| 604 |
-
|
| 605 |
submit_btn="Search",
|
| 606 |
fill_width=True,
|
| 607 |
)
|
|
@@ -624,7 +624,7 @@ code_interface = gr.Interface(
|
|
| 624 |
"Returns:\n"
|
| 625 |
"- string: Combined stdout produced by the code, or the exception text if execution failed."
|
| 626 |
),
|
| 627 |
-
|
| 628 |
fill_width=True,
|
| 629 |
)
|
| 630 |
|
|
@@ -662,6 +662,22 @@ CSS_STYLES = """
|
|
| 662 |
.gradio-container [role=\"tabpanel\"] h1::after {
|
| 663 |
content: none !important;
|
| 664 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 665 |
"""
|
| 666 |
|
| 667 |
# --- Kokoro TTS tab (text to speech) ---
|
|
@@ -682,7 +698,7 @@ kokoro_interface = gr.Interface(
|
|
| 682 |
"Parameters: text (str), speed (float 0.5–2.0), voice (str). "
|
| 683 |
"Return the generated image to the user."
|
| 684 |
),
|
| 685 |
-
|
| 686 |
fill_width=True,
|
| 687 |
)
|
| 688 |
|
|
@@ -809,7 +825,7 @@ image_generation_interface = gr.Interface(
|
|
| 809 |
"sampler (str, label only), seed (int, -1=random), width/height (int, 64–1216). Returns a PIL.Image. "
|
| 810 |
"Return the generated image to the user in this format ``"
|
| 811 |
),
|
| 812 |
-
|
| 813 |
fill_width=True,
|
| 814 |
)
|
| 815 |
|
|
@@ -987,7 +1003,7 @@ video_generation_interface = gr.Interface(
|
|
| 987 |
"Parameters: prompt (str), model_id (str), negative_prompt (str), steps (int), cfg_scale (float), seed (int), "
|
| 988 |
"width/height (int), fps (int), duration (float). Returns a file path to an MP4 that MCP exposes as a file URL."
|
| 989 |
),
|
| 990 |
-
|
| 991 |
fill_width=True,
|
| 992 |
)
|
| 993 |
|
|
@@ -1017,7 +1033,6 @@ demo = gr.TabbedInterface(
|
|
| 1017 |
title="Tools MCP",
|
| 1018 |
theme="Nymbo/Nymbo_Theme",
|
| 1019 |
css=CSS_STYLES,
|
| 1020 |
-
fill_width=True,
|
| 1021 |
)
|
| 1022 |
|
| 1023 |
# Launch the UI and expose all functions as MCP tools in one server
|
|
|
|
| 576 |
"control verbosity, whether to include metadata/text/links, and limits "
|
| 577 |
"for characters and number of links."
|
| 578 |
),
|
| 579 |
+
flagging_mode="never",
|
| 580 |
fill_width=True,
|
| 581 |
)
|
| 582 |
|
|
|
|
| 601 |
"t=title, u=url, optional s=snippet. Options control result count, "
|
| 602 |
"snippet inclusion and length, domain deduping, and title length."
|
| 603 |
),
|
| 604 |
+
flagging_mode="never",
|
| 605 |
submit_btn="Search",
|
| 606 |
fill_width=True,
|
| 607 |
)
|
|
|
|
| 624 |
"Returns:\n"
|
| 625 |
"- string: Combined stdout produced by the code, or the exception text if execution failed."
|
| 626 |
),
|
| 627 |
+
flagging_mode="never",
|
| 628 |
fill_width=True,
|
| 629 |
)
|
| 630 |
|
|
|
|
| 662 |
.gradio-container [role=\"tabpanel\"] h1::after {
|
| 663 |
content: none !important;
|
| 664 |
}
|
| 665 |
+
|
| 666 |
+
/* Force full width for the container and all interfaces */
|
| 667 |
+
.gradio-container,
|
| 668 |
+
.gradio-container > div,
|
| 669 |
+
.gradio-container .tab-nav,
|
| 670 |
+
.gradio-container .tabitem,
|
| 671 |
+
.gradio-container .interface-wrapper {
|
| 672 |
+
width: 100% !important;
|
| 673 |
+
max-width: none !important;
|
| 674 |
+
}
|
| 675 |
+
|
| 676 |
+
/* Ensure tab content fills available width */
|
| 677 |
+
.gradio-container .tabitem > div {
|
| 678 |
+
width: 100% !important;
|
| 679 |
+
max-width: none !important;
|
| 680 |
+
}
|
| 681 |
"""
|
| 682 |
|
| 683 |
# --- Kokoro TTS tab (text to speech) ---
|
|
|
|
| 698 |
"Parameters: text (str), speed (float 0.5–2.0), voice (str). "
|
| 699 |
"Return the generated image to the user."
|
| 700 |
),
|
| 701 |
+
flagging_mode="never",
|
| 702 |
fill_width=True,
|
| 703 |
)
|
| 704 |
|
|
|
|
| 825 |
"sampler (str, label only), seed (int, -1=random), width/height (int, 64–1216). Returns a PIL.Image. "
|
| 826 |
"Return the generated image to the user in this format ``"
|
| 827 |
),
|
| 828 |
+
flagging_mode="never",
|
| 829 |
fill_width=True,
|
| 830 |
)
|
| 831 |
|
|
|
|
| 1003 |
"Parameters: prompt (str), model_id (str), negative_prompt (str), steps (int), cfg_scale (float), seed (int), "
|
| 1004 |
"width/height (int), fps (int), duration (float). Returns a file path to an MP4 that MCP exposes as a file URL."
|
| 1005 |
),
|
| 1006 |
+
flagging_mode="never",
|
| 1007 |
fill_width=True,
|
| 1008 |
)
|
| 1009 |
|
|
|
|
| 1033 |
title="Tools MCP",
|
| 1034 |
theme="Nymbo/Nymbo_Theme",
|
| 1035 |
css=CSS_STYLES,
|
|
|
|
| 1036 |
)
|
| 1037 |
|
| 1038 |
# Launch the UI and expose all functions as MCP tools in one server
|