Yeefei commited on
Commit
d6a3501
·
verified ·
1 Parent(s): a83b521

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -585,15 +585,15 @@ with gr.Blocks(theme=gr.themes.Default()) as demo:
585
  with gr.Column(scale=1, min_width=200):
586
  cf_x_chest = gr.Image(
587
  label="Counterfactual", interactive=False
588
- , height=HEIGHT, width=WIDTH) #).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, width=WIDTH) #).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, width=WIDTH) #).style(height=HEIGHT)
597
 
598
  with gr.Row():
599
  with gr.Column(scale=2):#.55):
@@ -656,7 +656,7 @@ with gr.Blocks(theme=gr.themes.Default()) as demo:
656
  # demo.load(fn=get_chest_obs, inputs=None, outputs=obs_chest)
657
 
658
  demo.load(fn=get_chest_obs, inputs=None, outputs=obs_chest)
659
- demo.load(fn=load_model, inputs=chest_id, output=None)
660
 
661
 
662
  # demo.load(fn=brain_graph, inputs=do_brain, outputs=causal_graph_brain)
@@ -741,4 +741,4 @@ with gr.Blocks(theme=gr.themes.Default()) as demo:
741
 
742
  if __name__ == "__main__":
743
  demo.queue()
744
- demo.launch()
 
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):
 
656
  # demo.load(fn=get_chest_obs, inputs=None, outputs=obs_chest)
657
 
658
  demo.load(fn=get_chest_obs, inputs=None, outputs=obs_chest)
659
+ demo.load(fn=load_model, inputs=chest_id) #, output=None)
660
 
661
 
662
  # demo.load(fn=brain_graph, inputs=do_brain, outputs=causal_graph_brain)
 
741
 
742
  if __name__ == "__main__":
743
  demo.queue()
744
+ demo.launch(share=True)