Spaces:
Running
Running
Updated README
Browse files
README.md
CHANGED
@@ -14,3 +14,33 @@ app_port: 8866
|
|
14 |
- GitHub: <https://github.com/opengeos/voila-geospatial>
|
15 |
- Hugging Face: <https://huggingface.co/spaces/giswqs/voila-geospatial/tree/main>
|
16 |
- Web App: <https://giswqs-voila-geospatial.hf.space>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
- GitHub: <https://github.com/opengeos/voila-geospatial>
|
15 |
- Hugging Face: <https://huggingface.co/spaces/giswqs/voila-geospatial/tree/main>
|
16 |
- Web App: <https://giswqs-voila-geospatial.hf.space>
|
17 |
+
|
18 |
+
## How to deploy this app to Hugging Face Spaces
|
19 |
+
|
20 |
+
1. Go to <https://huggingface.co/spaces/giswqs/voila-geospatial/tree/main> and duplicate the space to your own space.
|
21 |
+
|
22 |
+

|
23 |
+
|
24 |
+
2. Set environment variables as need. For example, if you use Google Earth Engine, you need to set `EARTHENGINE_TOKEN` to your Earth Engine token. The token value should be copied from the following file depending on your operating system:
|
25 |
+
|
26 |
+
```text
|
27 |
+
Windows: C:\\Users\\USERNAME\\.config\\earthengine\\credentials
|
28 |
+
Linux: /home/USERNAME/.config/earthengine/credentials
|
29 |
+
MacOS: /Users/USERNAME/.config/earthengine/credentials
|
30 |
+
```
|
31 |
+
|
32 |
+
Simply open the file and copy **ALL** the content to the `EARTHENGINE_TOKEN` environment variable.
|
33 |
+
|
34 |
+

|
35 |
+
|
36 |
+

|
37 |
+
|
38 |
+
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-voila-geospatial.hf.space>.
|
39 |
+
|
40 |
+

|
41 |
+
|
42 |
+

|
43 |
+
|
44 |
+
4. Add your own notebooks to the `notebooks` folder and wait for the app to be rebuilt.
|
45 |
+
|
46 |
+
5. To hide the source code from the notebook, modify `run.sh` and set `--strip_sources=True`.
|