giswqs commited on
Commit
eaecc0f
·
1 Parent(s): 7372c43

Add home page

Browse files
Files changed (2) hide show
  1. pages/00_home.py +2 -48
  2. requirements.txt +1 -1
pages/00_home.py CHANGED
@@ -5,55 +5,9 @@ import solara
5
  def Page():
6
  with solara.Column(align="center"):
7
  markdown = """
8
- ## Earth Engine Web Apps
9
-
10
- ### Introduction
11
-
12
- **A collection of Earth Engine web apps developed using [Solara](https://github.com/widgetti/solara) and geemap**
13
-
14
- - Web App: <https://giswqs-solara-geemap.hf.space>
15
- - GitHub: <https://github.com/opengeos/solara-geemap>
16
- - Hugging Face: <https://huggingface.co/spaces/giswqs/solara-geemap>
17
-
18
-
19
- ### How to deploy this app on Hugging Face Spaces
20
-
21
- 1. Go to <https://huggingface.co/spaces/giswqs/solara-geemap/tree/main> and duplicate the space to your own space.
22
-
23
- ![](https://i.imgur.com/gTg4V2x.png)
24
-
25
- 2. You need to set `EARTHENGINE_TOKEN` in order to use Earth Engine. The token value should be copied from the following file depending on your operating system:
26
-
27
- ```text
28
- Windows: C:\\Users\\USERNAME\\.config\\earthengine\\credentials
29
- Linux: /home/USERNAME/.config/earthengine/credentials
30
- MacOS: /Users/USERNAME/.config/earthengine/credentials
31
- ```
32
-
33
- Simply open the file and copy **ALL** the content to the `EARTHENGINE_TOKEN` environment variable.
34
-
35
- ![](https://i.imgur.com/i04gzyH.png)
36
-
37
- ![](https://i.imgur.com/Ex37Ut7.png)
38
-
39
-
40
- ```python
41
- import geemap
42
- geemap.get_ee_token()
43
- ```
44
-
45
- Copy all the content of the printed token and set it as the `EARTHENGINE_TOKEN` environment variable.
46
-
47
- 3. After the space is built successfully, click the `Embed this Space` menu and find the `Direct URL` for the app, such as <https://giswqs-solara-geemap.hf.space>.
48
-
49
- ![](https://i.imgur.com/DNM36sk.png)
50
-
51
- ![](https://i.imgur.com/KX82lSf.png)
52
-
53
- 4. Add your own apps (*.py) to the `pages` folder.
54
-
55
- 5. Commit and push your changes to the repository. Wait for the space to be built successfully.
56
 
 
57
  """
58
 
59
  solara.Markdown(markdown)
 
5
  def Page():
6
  with solara.Column(align="center"):
7
  markdown = """
8
+ ## Global Surface Water Explorer
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
+ ![](https://i.imgur.com/cj4wI2y.gif)
11
  """
12
 
13
  solara.Markdown(markdown)
requirements.txt CHANGED
@@ -1,6 +1,6 @@
1
  ffmpeg-python
2
  # geemap
3
  geopandas
4
- git+https://github.com/giswqs/geemap
5
  pydantic< 2.0
6
  solara
 
1
  ffmpeg-python
2
  # geemap
3
  geopandas
4
+ git+https://github.com/gee-community/geemap
5
  pydantic< 2.0
6
  solara