Yeefei commited on
Commit
3097bad
·
verified ·
1 Parent(s): cd7b88a

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -12
app.py CHANGED
@@ -578,22 +578,16 @@ with gr.Blocks(theme=gr.themes.Default()) as demo:
578
  with gr.Row(): #.style(equal_height=True):
579
  idx_chest = gr.Number(value=0, visible=False)
580
  with gr.Column(scale=1, min_width=200):
581
- x_chest = gr.Image(label="Observation", interactive=False,
582
- height=HEIGHT) #).style(
583
- # height=HEIGHT
584
- # )
585
  with gr.Column(scale=1, min_width=200):
586
  cf_x_chest = gr.Image(
587
- label="Counterfactual", interactive=False
588
- , height=HEIGHT) #).style(height=HEIGHT)
589
  with gr.Column(scale=1, min_width=200):
590
  cf_x_std_chest = gr.Image(
591
- label="Counterfactual Uncertainty", interactive=False
592
- , height=HEIGHT) #).style(height=HEIGHT)
593
  with gr.Column(scale=1, min_width=200):
594
  effect_chest = gr.Image(
595
- label="Direct Causal Effect", interactive=False
596
- , height=HEIGHT) #).style(height=HEIGHT)
597
 
598
  with gr.Row():
599
  with gr.Column(scale=2.55):
@@ -630,8 +624,7 @@ with gr.Blocks(theme=gr.themes.Default()) as demo:
630
  with gr.Column(scale=1):
631
  # gr.Markdown("###  ")
632
  causal_graph_chest = gr.Image(
633
- label="Causal Graph", interactive=False
634
- , height=345) #).style(height=345)
635
 
636
  # # morphomnist
637
  # do = [do_t, do_i, do_y]
 
578
  with gr.Row(): #.style(equal_height=True):
579
  idx_chest = gr.Number(value=0, visible=False)
580
  with gr.Column(scale=1, min_width=200):
581
+ x_chest = gr.Image(label="Observation", interactive=False,).style(height=HEIGHT)
 
 
 
582
  with gr.Column(scale=1, min_width=200):
583
  cf_x_chest = gr.Image(
584
+ label="Counterfactual", interactive=False).style(height=HEIGHT)
 
585
  with gr.Column(scale=1, min_width=200):
586
  cf_x_std_chest = gr.Image(
587
+ label="Counterfactual Uncertainty", interactive=False).style(height=HEIGHT)
 
588
  with gr.Column(scale=1, min_width=200):
589
  effect_chest = gr.Image(
590
+ label="Direct Causal Effect", interactive=False).style(height=HEIGHT)
 
591
 
592
  with gr.Row():
593
  with gr.Column(scale=2.55):
 
624
  with gr.Column(scale=1):
625
  # gr.Markdown("###  ")
626
  causal_graph_chest = gr.Image(
627
+ label="Causal Graph", interactive=False).style(height=345)
 
628
 
629
  # # morphomnist
630
  # do = [do_t, do_i, do_y]