Upload app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,8 @@ DIGITS = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
|
|
28 |
# brain
|
29 |
MRISEQ_CAT = ["T1", "T2-FLAIR"] # 0,1
|
30 |
SEX_CAT = ["female", "male"] # 0,1
|
31 |
-
HEIGHT, WIDTH = 270, 270
|
|
|
32 |
# chest
|
33 |
SEX_CAT_CHEST = ["female", "male"] # 0,1
|
34 |
RACE_CAT = ["white", "black", "asian"] # 0,1,2
|
@@ -576,19 +577,19 @@ with gr.Blocks(theme=gr.themes.Default()) as demo:
|
|
576 |
|
577 |
with gr.Row(): #.style(equal_height=True):
|
578 |
idx_chest = gr.Number(value=0, visible=False)
|
579 |
-
with gr.Column(scale=2, min_width=
|
580 |
x_chest = gr.Image(label="Observation", interactive=False, height=HEIGHT) #).style(
|
581 |
# height=HEIGHT
|
582 |
# )
|
583 |
-
with gr.Column(scale=2, min_width=
|
584 |
cf_x_chest = gr.Image(
|
585 |
label="Counterfactual", interactive=False
|
586 |
, height=HEIGHT) #).style(height=HEIGHT)
|
587 |
-
with gr.Column(scale=2, min_width=
|
588 |
cf_x_std_chest = gr.Image(
|
589 |
label="Counterfactual Uncertainty", interactive=False
|
590 |
, height=HEIGHT) #).style(height=HEIGHT)
|
591 |
-
with gr.Column(scale=2, min_width=
|
592 |
effect_chest = gr.Image(
|
593 |
label="Direct Causal Effect", interactive=False
|
594 |
, height=HEIGHT) #).style(height=HEIGHT)
|
|
|
28 |
# brain
|
29 |
MRISEQ_CAT = ["T1", "T2-FLAIR"] # 0,1
|
30 |
SEX_CAT = ["female", "male"] # 0,1
|
31 |
+
# HEIGHT, WIDTH = 270, 270
|
32 |
+
HEIGHT, WIDTH = 500, 500
|
33 |
# chest
|
34 |
SEX_CAT_CHEST = ["female", "male"] # 0,1
|
35 |
RACE_CAT = ["white", "black", "asian"] # 0,1,2
|
|
|
577 |
|
578 |
with gr.Row(): #.style(equal_height=True):
|
579 |
idx_chest = gr.Number(value=0, visible=False)
|
580 |
+
with gr.Column(scale=2, min_width=300):
|
581 |
x_chest = gr.Image(label="Observation", interactive=False, height=HEIGHT) #).style(
|
582 |
# height=HEIGHT
|
583 |
# )
|
584 |
+
with gr.Column(scale=2, min_width=300):
|
585 |
cf_x_chest = gr.Image(
|
586 |
label="Counterfactual", interactive=False
|
587 |
, height=HEIGHT) #).style(height=HEIGHT)
|
588 |
+
with gr.Column(scale=2, min_width=300):
|
589 |
cf_x_std_chest = gr.Image(
|
590 |
label="Counterfactual Uncertainty", interactive=False
|
591 |
, height=HEIGHT) #).style(height=HEIGHT)
|
592 |
+
with gr.Column(scale=2, min_width=300):
|
593 |
effect_chest = gr.Image(
|
594 |
label="Direct Causal Effect", interactive=False
|
595 |
, height=HEIGHT) #).style(height=HEIGHT)
|