Update app.py
Browse files
app.py
CHANGED
@@ -577,6 +577,7 @@ fetch_interface = gr.Interface(
|
|
577 |
"for characters and number of links."
|
578 |
),
|
579 |
allow_flagging="never",
|
|
|
580 |
)
|
581 |
|
582 |
# --- Concise DDG tab (JSONL with short keys, minimal tokens) ---
|
@@ -602,6 +603,7 @@ concise_interface = gr.Interface(
|
|
602 |
),
|
603 |
allow_flagging="never",
|
604 |
submit_btn="Search",
|
|
|
605 |
)
|
606 |
|
607 |
##
|
@@ -623,34 +625,10 @@ code_interface = gr.Interface(
|
|
623 |
"- string: Combined stdout produced by the code, or the exception text if execution failed."
|
624 |
),
|
625 |
allow_flagging="never",
|
|
|
626 |
)
|
627 |
|
628 |
CSS_STYLES = """
|
629 |
-
/* Force consistent full width across all tabs */
|
630 |
-
.gradio-container {
|
631 |
-
width: 100% !important;
|
632 |
-
max-width: none !important;
|
633 |
-
min-width: 100% !important;
|
634 |
-
}
|
635 |
-
|
636 |
-
/* Ensure all tab panels maintain full width */
|
637 |
-
.gradio-container [role="tabpanel"] {
|
638 |
-
width: 100% !important;
|
639 |
-
max-width: none !important;
|
640 |
-
}
|
641 |
-
|
642 |
-
/* Force all interfaces to use full width */
|
643 |
-
.gradio-container .gradio-interface {
|
644 |
-
width: 100% !important;
|
645 |
-
max-width: none !important;
|
646 |
-
}
|
647 |
-
|
648 |
-
/* Ensure form containers use full width */
|
649 |
-
.gradio-container .gradio-form {
|
650 |
-
width: 100% !important;
|
651 |
-
max-width: none !important;
|
652 |
-
}
|
653 |
-
|
654 |
.gradio-container h1 {
|
655 |
text-align: center;
|
656 |
/* Ensure main title appears first, then our two subtitle lines */
|
@@ -705,6 +683,7 @@ kokoro_interface = gr.Interface(
|
|
705 |
"Return the generated image to the user."
|
706 |
),
|
707 |
allow_flagging="never",
|
|
|
708 |
)
|
709 |
|
710 |
# ==========================
|
@@ -831,6 +810,7 @@ image_generation_interface = gr.Interface(
|
|
831 |
"Return the generated image to the user in this format ``"
|
832 |
),
|
833 |
allow_flagging="never",
|
|
|
834 |
)
|
835 |
|
836 |
# ==========================
|
@@ -1008,6 +988,7 @@ video_generation_interface = gr.Interface(
|
|
1008 |
"width/height (int), fps (int), duration (float). Returns a file path to an MP4 that MCP exposes as a file URL."
|
1009 |
),
|
1010 |
allow_flagging="never",
|
|
|
1011 |
)
|
1012 |
|
1013 |
# Build tabbed app; disable Image/Video tools if no HF token is present
|
@@ -1036,6 +1017,7 @@ demo = gr.TabbedInterface(
|
|
1036 |
title="Tools MCP",
|
1037 |
theme="Nymbo/Nymbo_Theme",
|
1038 |
css=CSS_STYLES,
|
|
|
1039 |
)
|
1040 |
|
1041 |
# Launch the UI and expose all functions as MCP tools in one server
|
|
|
577 |
"for characters and number of links."
|
578 |
),
|
579 |
allow_flagging="never",
|
580 |
+
fill_width=True,
|
581 |
)
|
582 |
|
583 |
# --- Concise DDG tab (JSONL with short keys, minimal tokens) ---
|
|
|
603 |
),
|
604 |
allow_flagging="never",
|
605 |
submit_btn="Search",
|
606 |
+
fill_width=True,
|
607 |
)
|
608 |
|
609 |
##
|
|
|
625 |
"- string: Combined stdout produced by the code, or the exception text if execution failed."
|
626 |
),
|
627 |
allow_flagging="never",
|
628 |
+
fill_width=True,
|
629 |
)
|
630 |
|
631 |
CSS_STYLES = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
632 |
.gradio-container h1 {
|
633 |
text-align: center;
|
634 |
/* Ensure main title appears first, then our two subtitle lines */
|
|
|
683 |
"Return the generated image to the user."
|
684 |
),
|
685 |
allow_flagging="never",
|
686 |
+
fill_width=True,
|
687 |
)
|
688 |
|
689 |
# ==========================
|
|
|
810 |
"Return the generated image to the user in this format ``"
|
811 |
),
|
812 |
allow_flagging="never",
|
813 |
+
fill_width=True,
|
814 |
)
|
815 |
|
816 |
# ==========================
|
|
|
988 |
"width/height (int), fps (int), duration (float). Returns a file path to an MP4 that MCP exposes as a file URL."
|
989 |
),
|
990 |
allow_flagging="never",
|
991 |
+
fill_width=True,
|
992 |
)
|
993 |
|
994 |
# Build tabbed app; disable Image/Video tools if no HF token is present
|
|
|
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
|