giswqs commited on
Commit
d3aa488
1 Parent(s): 07d67ec

Updated README

Browse files
Files changed (1) hide show
  1. README.md +30 -0
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
+ ![](https://i.imgur.com/4ib5BzB.png)
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
+ ![](https://i.imgur.com/i04gzyH.png)
35
+
36
+ ![](https://i.imgur.com/Ex37Ut7.png)
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
+ ![](https://i.imgur.com/V2Lp0dP.png)
41
+
42
+ ![](https://i.imgur.com/klhR5FL.png)
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`.