Mirko Trasciatti commited on
Commit
c3f1031
·
1 Parent(s): d64eaa2

Remove custom CSS overrides

Browse files
Files changed (1) hide show
  1. app.py +3 -12
app.py CHANGED
@@ -1377,16 +1377,7 @@ def process_video_api(
1377
 
1378
 
1379
  theme = Soft(primary_hue="blue", secondary_hue="rose", neutral_hue="slate")
1380
- CUSTOM_CSS = """
1381
- .equal-row > .gr-column {
1382
- flex: 1 1 0% !important;
1383
- min-width: 0 !important;
1384
- }
1385
- .examples-top {
1386
- order: -1;
1387
- width: 100%;
1388
- }
1389
- """
1390
 
1391
  with gr.Blocks(title="SAM2 Video (Transformers) - Interactive Segmentation", theme=theme, css=CUSTOM_CSS) as demo:
1392
  GLOBAL_STATE = gr.State(AppState())
@@ -1419,7 +1410,7 @@ with gr.Blocks(title="SAM2 Video (Transformers) - Interactive Segmentation", the
1419
  """
1420
  )
1421
 
1422
- with gr.Row(equal_height=True, elem_classes=["equal-row"]):
1423
  with gr.Column(scale=1):
1424
  video_in = gr.Video(
1425
  label="Upload video",
@@ -1487,7 +1478,7 @@ with gr.Blocks(title="SAM2 Video (Transformers) - Interactive Segmentation", the
1487
  examples_list = [
1488
  [None, example_video_path],
1489
  ]
1490
- with gr.Row(elem_classes=["examples-top"]):
1491
  gr.Examples(
1492
  examples=examples_list,
1493
  inputs=[GLOBAL_STATE, video_in],
 
1377
 
1378
 
1379
  theme = Soft(primary_hue="blue", secondary_hue="rose", neutral_hue="slate")
1380
+ CUSTOM_CSS = ""
 
 
 
 
 
 
 
 
 
1381
 
1382
  with gr.Blocks(title="SAM2 Video (Transformers) - Interactive Segmentation", theme=theme, css=CUSTOM_CSS) as demo:
1383
  GLOBAL_STATE = gr.State(AppState())
 
1410
  """
1411
  )
1412
 
1413
+ with gr.Row(equal_height=True):
1414
  with gr.Column(scale=1):
1415
  video_in = gr.Video(
1416
  label="Upload video",
 
1478
  examples_list = [
1479
  [None, example_video_path],
1480
  ]
1481
+ with gr.Row():
1482
  gr.Examples(
1483
  examples=examples_list,
1484
  inputs=[GLOBAL_STATE, video_in],