WhoDat55 commited on
Commit
a72ab2b
·
verified ·
1 Parent(s): 32c023f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -44
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://whodat55-hackathon-core-mcp.hf.space/execute"
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", css="""
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
- with gr.Group(elem_classes="media-viewport"):
362
- default_image = gr.Image(
363
- value="ai_creative_tech .png",
364
- show_label=False,
365
- visible=True,
366
- interactive=False,
367
- type="filepath",
368
- container=False
369
- )
370
- working_video = gr.Video(
371
- value="ai_ct_working.mp4",
372
- show_label=False,
373
- visible=False,
374
- autoplay=True,
375
- loop=True,
376
- container=False
377
- )
378
- celebrate_video = gr.Video(
379
- value="ai_creative_tech_celebrate.mp4",
380
- show_label=False,
381
- visible=False,
382
- autoplay=True,
383
- loop=False,
384
- container=False
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():