Spaces:
Sleeping
Sleeping
File size: 1,965 Bytes
6581617 84e6e82 6581617 84e6e82 e3721b9 84e6e82 e3721b9 84e6e82 e3721b9 84e6e82 e3721b9 84e6e82 e3721b9 84e6e82 e3721b9 84e6e82 e3721b9 84e6e82 e3721b9 84e6e82 e3721b9 84e6e82 e3721b9 84e6e82 e3721b9 6581617 e3721b9 6581617 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
import solara
@solara.component
def Page():
with solara.Column(align="center"):
markdown = """
## Earth Engine Web Apps
### Introduction
**A collection of Earth Engine web apps developed using [Solara](https://github.com/widgetti/solara) and geemap**
- Web App: <https://giswqs-solara-geemap.hf.space>
- GitHub: <https://github.com/opengeos/solara-geemap>
- Hugging Face: <https://huggingface.co/spaces/giswqs/solara-geemap>
### How to deploy this app on Hugging Face Spaces
1. Go to <https://huggingface.co/spaces/giswqs/solara-geemap/tree/main> and duplicate the space to your own space.

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:
```text
Windows: C:\\Users\\USERNAME\\.config\\earthengine\\credentials
Linux: /home/USERNAME/.config/earthengine/credentials
MacOS: /Users/USERNAME/.config/earthengine/credentials
```
Simply open the file and copy **ALL** the content to the `EARTHENGINE_TOKEN` environment variable.


```python
import geemap
geemap.get_ee_token()
```
Copy all the content of the printed token and set it as the `EARTHENGINE_TOKEN` environment variable.
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>.


4. Add your own apps (*.py) to the `pages` folder.
"""
solara.Markdown(markdown)
|