jatamura commited on
Commit
364efdb
·
verified ·
1 Parent(s): d12f8d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -27
app.py CHANGED
@@ -56,15 +56,15 @@ app_ui = ui.page_fluid(
56
  border_radius=False
57
  )
58
  ),
59
- # ui.div(
60
- # ui.layout_column_wrap(
61
- # ui.output_image("rbg_kew"),
62
- # ui.output_image("bloomberg"),
63
- # ui.output_image("brin"),
64
- # ui.output_image("abg"),
65
- # )
66
- # class_="footer"
67
- # )
68
  )
69
 
70
  @module.ui
@@ -108,25 +108,25 @@ def plot_server(input, output, session, r):
108
  fig.canvas.flush_events()
109
 
110
  def server(input, output, session: Session):
111
- # @render.image
112
- # def rbg_kew():
113
- # img = {"src": "logos/rbg_kew.png", "height": "100px"}
114
- # return img
115
 
116
- # @render.image
117
- # def bloomberg():
118
- # img = {"src": "logos/bloomberg.png", "height": "100px"}
119
- # return img
120
-
121
- # @render.image
122
- # def brin():
123
- # img = {"src": "logos/brin.png", "height": "100px"}
124
- # return img
125
-
126
- # @render.image
127
- # def abg():
128
- # img = {"src": "logos/abg.png", "height": "100px"}
129
- # return img
130
 
131
 
132
  analysis_results = reactive.Value([])
 
56
  border_radius=False
57
  )
58
  ),
59
+ ui.div(
60
+ ui.layout_column_wrap(
61
+ ui.output_image("rbg_kew", height='100px'),
62
+ ui.output_image("bloomberg", height='100px'),
63
+ ui.output_image("brin", height='100px'),
64
+ ui.output_image("abg", height='100px'),
65
+ )
66
+ class_="footer"
67
+ )
68
  )
69
 
70
  @module.ui
 
108
  fig.canvas.flush_events()
109
 
110
  def server(input, output, session: Session):
111
+ @render.image
112
+ def rbg_kew():
113
+ img = {"src": "assets/rbg_kew.png", "height": "100px"}
114
+ return img
115
 
116
+ @render.image
117
+ def bloomberg():
118
+ img = {"src": "assets/bloomberg.png", "height": "100px"}
119
+ return img
120
+
121
+ @render.image
122
+ def brin():
123
+ img = {"src": "assets/brin.png", "height": "100px"}
124
+ return img
125
+
126
+ @render.image
127
+ def abg():
128
+ img = {"src": "assets/abg.png", "height": "100px"}
129
+ return img
130
 
131
 
132
  analysis_results = reactive.Value([])