Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import time
|
|
| 6 |
from configparser import ConfigParser
|
| 7 |
from typing import List, Dict, Any
|
| 8 |
|
| 9 |
-
MCP_SERVER_URL = "https://
|
| 10 |
|
| 11 |
# HARDCODED PROVIDER MAPPING (Directive 1.1, 1.2, 1.3)
|
| 12 |
PROVIDER_MODEL_MAPPING = {
|
|
@@ -312,24 +312,7 @@ Produce a pro level styled and tuned them GUI that has 1 button that when presse
|
|
| 312 |
gr.update(choices=strategist_models_for_reset, value=strategist_reset_value) # strategist_model
|
| 313 |
)
|
| 314 |
|
| 315 |
-
with gr.Blocks(title="Project: Conductor V4.0 Client"
|
| 316 |
-
.media-viewport {
|
| 317 |
-
height: 450px !important;
|
| 318 |
-
width: 100% !important;
|
| 319 |
-
display: flex !important;
|
| 320 |
-
align-items: center !important;
|
| 321 |
-
justify-content: center !important;
|
| 322 |
-
background-color: #000 !important;
|
| 323 |
-
border-radius: 8px !important;
|
| 324 |
-
overflow: hidden !important;
|
| 325 |
-
}
|
| 326 |
-
.media-viewport img, .media-viewport video {
|
| 327 |
-
max-height: 100% !important;
|
| 328 |
-
max-width: 100% !important;
|
| 329 |
-
object-fit: contain !important;
|
| 330 |
-
display: block !important;
|
| 331 |
-
}
|
| 332 |
-
""") as interface:
|
| 333 |
gr.Markdown("# Project: Conductor V4.0 (Client Mode)")
|
| 334 |
gr.Markdown(f"### The Command Center: Connected to MCP Server at `{MCP_SERVER_URL}`")
|
| 335 |
|
|
@@ -358,31 +341,31 @@ Produce a pro level styled and tuned them GUI that has 1 button that when presse
|
|
| 358 |
|
| 359 |
# COLUMN 2 - MEDIA BOX (Center Stage)
|
| 360 |
with gr.Column():
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
|
| 371 |
-
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
|
| 381 |
-
|
| 382 |
-
|
| 383 |
-
|
| 384 |
-
|
| 385 |
-
|
| 386 |
|
| 387 |
# COLUMN 3 - STRATEGIST (Right Flank)
|
| 388 |
with gr.Column():
|
|
|
|
| 6 |
from configparser import ConfigParser
|
| 7 |
from typing import List, Dict, Any
|
| 8 |
|
| 9 |
+
MCP_SERVER_URL = "https://mcp-1st-birthday-project-conductor-core-mcp.hf.space/execute"
|
| 10 |
|
| 11 |
# HARDCODED PROVIDER MAPPING (Directive 1.1, 1.2, 1.3)
|
| 12 |
PROVIDER_MODEL_MAPPING = {
|
|
|
|
| 312 |
gr.update(choices=strategist_models_for_reset, value=strategist_reset_value) # strategist_model
|
| 313 |
)
|
| 314 |
|
| 315 |
+
with gr.Blocks(title="Project: Conductor V4.0 Client") as interface:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 316 |
gr.Markdown("# Project: Conductor V4.0 (Client Mode)")
|
| 317 |
gr.Markdown(f"### The Command Center: Connected to MCP Server at `{MCP_SERVER_URL}`")
|
| 318 |
|
|
|
|
| 341 |
|
| 342 |
# COLUMN 2 - MEDIA BOX (Center Stage)
|
| 343 |
with gr.Column():
|
| 344 |
+
gr.Markdown("Media Box")
|
| 345 |
+
default_image = gr.Image(
|
| 346 |
+
value="ai_creative_tech .png",
|
| 347 |
+
show_label=False,
|
| 348 |
+
visible=True,
|
| 349 |
+
interactive=False,
|
| 350 |
+
type="filepath",
|
| 351 |
+
height=450
|
| 352 |
+
)
|
| 353 |
+
working_video = gr.Video(
|
| 354 |
+
value="ai_ct_working.mp4",
|
| 355 |
+
show_label=False,
|
| 356 |
+
visible=False,
|
| 357 |
+
autoplay=True,
|
| 358 |
+
loop=True,
|
| 359 |
+
height=450
|
| 360 |
+
)
|
| 361 |
+
celebrate_video = gr.Video(
|
| 362 |
+
value="ai_creative_tech_celebrate.mp4",
|
| 363 |
+
show_label=False,
|
| 364 |
+
visible=False,
|
| 365 |
+
autoplay=True,
|
| 366 |
+
loop=False,
|
| 367 |
+
height=450
|
| 368 |
+
)
|
| 369 |
|
| 370 |
# COLUMN 3 - STRATEGIST (Right Flank)
|
| 371 |
with gr.Column():
|