aletrn commited on
Commit
aedefa3
·
1 Parent(s): 7742e83

ci: add missing requirements.txt and pre-requirements.txt dependencies files

Browse files
README.md CHANGED
@@ -25,7 +25,27 @@ In this case after the clone of this repository it's best to initialize the `sam
25
  git submodule update --init --recursive
26
  ```
27
 
28
- ## SamGIS - HuggingFace version
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
  The SamGIS HuggingSpace url is <https://huggingface.co/spaces/aletrn/samgis>.
31
  Build the docker image this way:
 
25
  git submodule update --init --recursive
26
  ```
27
 
28
+ ## SamGIS - Gradio SDK version
29
+
30
+ After developed your project using [the gradio quickstart](https://www.gradio.app/guides/quickstart),
31
+ you can declare the specific gradio version you want to use in the HuggingFace space using
32
+ the README.md header section. You need to compile these fields:
33
+
34
+ ```
35
+ sdk: gradio
36
+ sdk_version: 4.39.0
37
+ app_file: app.py
38
+ ```
39
+
40
+ For some reason the space won't work if the app_file setting points to a file not
41
+ within the root folder project.
42
+
43
+ Under the hood, HuggingFace install the gradio SDK using docker. If you need to install some dependencies
44
+ (for this project I needed `nodejs`) you can add some system
45
+ [debian packages](https://huggingface.co/docs/hub/spaces-dependencies#adding-your-own-dependencies)
46
+ within the `pre-requirements.txt` file.
47
+
48
+ ## SamGIS - Docker version
49
 
50
  The SamGIS HuggingSpace url is <https://huggingface.co/spaces/aletrn/samgis>.
51
  Build the docker image this way:
pre-requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ nodejs
requirements.txt ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ bson==0.5.10
2
+ contextily==1.6.0
3
+ geopandas==1.0.1
4
+ numpy==1.25.2
5
+ pillow==10.4.0
6
+ python-dotenv==1.0.1
7
+ onnxruntime==1.18.1
8
+ rasterio==1.3.10
9
+ requests==2.32.3
10
+ samgis-core==3.0.6
11
+ samgis-web==1.0.7
12
+ fastapi==0.111.0
13
+ jinja2==3.1.4
14
+ pydantic==2.8.2
15
+ uvicorn==0.30.1
requirements_no_versions.txt ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ bson
2
+ contextily
3
+ geopandas
4
+ numpy
5
+ pillow
6
+ python-dotenv
7
+ onnxruntime
8
+ rasterio
9
+ requests
10
+ samgis-core
11
+ samgis-web
12
+ fastapi
13
+ jinja2
14
+ pydantic
15
+ uvicorn