Update app.py
Browse files
app.py
CHANGED
|
@@ -108,7 +108,7 @@ def execute_agent_task(
|
|
| 108 |
return f'Agent processing failure: {str(e)}'
|
| 109 |
|
| 110 |
|
| 111 |
-
# --- EXACT UI CUSTOM STYLING
|
| 112 |
custom_css = """
|
| 113 |
body, .gradio-container {
|
| 114 |
background-color: #0b1818 !important;
|
|
@@ -138,6 +138,11 @@ footer { display: none !important; }
|
|
| 138 |
min-height: 100%;
|
| 139 |
}
|
| 140 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 141 |
/* Card Styling for Input / Output */
|
| 142 |
.card-box {
|
| 143 |
background-color: #ffffff !important;
|
|
@@ -192,7 +197,7 @@ footer { display: none !important; }
|
|
| 192 |
"""
|
| 193 |
|
| 194 |
# --- GRADIO INTERFACE BUILD ---
|
| 195 |
-
with gr.Blocks(
|
| 196 |
|
| 197 |
with gr.Row(elem_id="main-workspace"):
|
| 198 |
|
|
@@ -218,7 +223,7 @@ with gr.Blocks(css=custom_css, title="XTranslate Agentic Studio") as demo:
|
|
| 218 |
)
|
| 219 |
|
| 220 |
# RIGHT MAIN CONTROL CENTER
|
| 221 |
-
with gr.Column(scale=3,
|
| 222 |
|
| 223 |
# HEADER
|
| 224 |
gr.HTML(
|
|
@@ -366,4 +371,4 @@ with gr.Blocks(css=custom_css, title="XTranslate Agentic Studio") as demo:
|
|
| 366 |
)
|
| 367 |
|
| 368 |
if __name__ == "__main__":
|
| 369 |
-
demo.launch()
|
|
|
|
| 108 |
return f'Agent processing failure: {str(e)}'
|
| 109 |
|
| 110 |
|
| 111 |
+
# --- EXACT UI CUSTOM STYLING ---
|
| 112 |
custom_css = """
|
| 113 |
body, .gradio-container {
|
| 114 |
background-color: #0b1818 !important;
|
|
|
|
| 138 |
min-height: 100%;
|
| 139 |
}
|
| 140 |
|
| 141 |
+
/* Right Main Control Center Padding */
|
| 142 |
+
#main-control-center {
|
| 143 |
+
padding: 25px !important;
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
/* Card Styling for Input / Output */
|
| 147 |
.card-box {
|
| 148 |
background-color: #ffffff !important;
|
|
|
|
| 197 |
"""
|
| 198 |
|
| 199 |
# --- GRADIO INTERFACE BUILD ---
|
| 200 |
+
with gr.Blocks(title="XTranslate Agentic Studio") as demo:
|
| 201 |
|
| 202 |
with gr.Row(elem_id="main-workspace"):
|
| 203 |
|
|
|
|
| 223 |
)
|
| 224 |
|
| 225 |
# RIGHT MAIN CONTROL CENTER
|
| 226 |
+
with gr.Column(scale=3, elem_id="main-control-center"):
|
| 227 |
|
| 228 |
# HEADER
|
| 229 |
gr.HTML(
|
|
|
|
| 371 |
)
|
| 372 |
|
| 373 |
if __name__ == "__main__":
|
| 374 |
+
demo.launch(css=custom_css)
|