mikonvergence commited on
Commit
b6797d5
·
verified ·
1 Parent(s): e930f8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -17,7 +17,7 @@ It contains nearly every piece of Earth captured by ESA Sentinel-2 satellite as
17
  There are **two ways to query the dataset**:
18
 
19
  - To find a sample, navigate on the map to a place of interest. Click `Find Sample` to find a dataset sample that contains the central pixel of your current view.
20
- - or you can enter a text prompt (encoded with SigLIP) and click `Search with Text`
21
  '''
22
 
23
  instructions_bottom = '''
@@ -35,8 +35,8 @@ source = solara.reactive('Sentinel-2 L2A')
35
  search_prompt = solara.reactive("")
36
 
37
  @solara.component
38
- def Page(style='background-image: linear-gradient(to right, #2f3192, #0171bd, #3ab64b, #f25a24);'):
39
- with solara.Column():
40
 
41
  with solara.Card(margin=10):
42
  solara.Markdown(instructions_top)
@@ -98,7 +98,7 @@ def Page(style='background-image: linear-gradient(to right, #2f3192, #0171bd, #3
98
 
99
  with solara.Row():
100
  solara.InputText("(Optional) Text Prompt:", value=search_prompt)
101
- text_button = solara.Button("Search with Text", on_click=update_image_with_text, height='50px')
102
 
103
  solara.Select(label="Data Source", value=source, values=['Sentinel-2 L2A','Sentinel-2 L1C', 'Sentinel-1 RTC', 'COP-DEM','AlphaEarth Embeddings'], on_value=update_source)
104
  with solara.Column(align='center'):
 
17
  There are **two ways to query the dataset**:
18
 
19
  - To find a sample, navigate on the map to a place of interest. Click `Find Sample` to find a dataset sample that contains the central pixel of your current view.
20
+ - or you can enter a text prompt (encoded with [SigLIP](https://huggingface.co/datasets/Major-TOM/Core-S2RGB-SigLIP)) and click `Search with Text`
21
  '''
22
 
23
  instructions_bottom = '''
 
35
  search_prompt = solara.reactive("")
36
 
37
  @solara.component
38
+ def Page():
39
+ with solara.Column(style='background-image: linear-gradient(to right, #2f3192, #0171bd, #3ab64b, #f25a24);'):
40
 
41
  with solara.Card(margin=10):
42
  solara.Markdown(instructions_top)
 
98
 
99
  with solara.Row():
100
  solara.InputText("(Optional) Text Prompt:", value=search_prompt)
101
+ text_button = solara.Button("Search with Text (SigLIP)", on_click=update_image_with_text, height='50px')
102
 
103
  solara.Select(label="Data Source", value=source, values=['Sentinel-2 L2A','Sentinel-2 L1C', 'Sentinel-1 RTC', 'COP-DEM','AlphaEarth Embeddings'], on_value=update_source)
104
  with solara.Column(align='center'):