mikonvergence commited on
Commit
2dcc4fd
·
verified ·
1 Parent(s): 3b96b0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -9,7 +9,7 @@ import ipywidgets
9
  import solara
10
 
11
  instructions_top = '''
12
- ![image/png](https://cdn-uploads.huggingface.co/production/uploads/6304c06eeb6d777a838eab63/A07zVbed5h19KJSV9u4NI.png)
13
  # Dataset Viewer
14
 
15
  This app provides a way of exploring samples present in the MajorTOM-Core dataset.
@@ -66,11 +66,9 @@ def Page():
66
  with solara.Card(margin=10):
67
  with solara.ColumnsResponsive(default=12, small=12, medium=6, large=6, xlarge=6):
68
  with solara.Column(align='center'):
69
- solara.Select(label="Processing Level", value=s2_level, values=['L2A','L1C'], on_value=update_level)
70
  m = leafmap.Map(
71
  #height=500px,
72
- width='50em',
73
- layout=ipywidgets.Layout(flex='1 1 auto', width='500px', height='500px', max_width='90rem'),
74
  zoom=zoom.value,
75
  center=center.value,
76
  draw_control=False,
@@ -80,7 +78,8 @@ def Page():
80
  attribution_control=True,
81
  )
82
  display(m)
83
- button = solara.Button("Find Sample", on_click=update_image, height='80px')
 
84
  with solara.Column(align='center'):
85
  output = solara.Image(image_data.value)
86
 
 
9
  import solara
10
 
11
  instructions_top = '''
12
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/6304c06eeb6d777a838eab63/BJKsLwX0GG4W3-gdf40TJ.png)
13
  # Dataset Viewer
14
 
15
  This app provides a way of exploring samples present in the MajorTOM-Core dataset.
 
66
  with solara.Card(margin=10):
67
  with solara.ColumnsResponsive(default=12, small=12, medium=6, large=6, xlarge=6):
68
  with solara.Column(align='center'):
 
69
  m = leafmap.Map(
70
  #height=500px,
71
+ layout=ipywidgets.Layout(overflow='hidden', width='560px', height='560px', max_width='90rem'),
 
72
  zoom=zoom.value,
73
  center=center.value,
74
  draw_control=False,
 
78
  attribution_control=True,
79
  )
80
  display(m)
81
+ button = solara.Button("Find Sample", on_click=update_image, height='80px')
82
+ solara.Select(label="Processing Level", value=s2_level, values=['L2A','L1C'], on_value=update_level)
83
  with solara.Column(align='center'):
84
  output = solara.Image(image_data.value)
85