egrace479 commited on
Commit
cc0333b
1 Parent(s): 27c2eb4

Add application files and directions to use dashboard.

Browse files
Files changed (3) hide show
  1. Dockerfile +2 -0
  2. README.md +22 -1
  3. run.sh +2 -0
Dockerfile ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ FROM ghcr.io/imageomics/dashboard-prototype:latest
2
+ COPY run.sh /api/run.sh
README.md CHANGED
@@ -8,4 +8,25 @@ pinned: false
8
  license: mit
9
  ---
10
 
11
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  license: mit
9
  ---
10
 
11
+ <!-- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference -->
12
+
13
+ # Dashboard Prototype
14
+
15
+ For development information or to make your own version, see the [GitHub project repo](https://github.com/Imageomics/dashboard-prototype).
16
+
17
+ ## How it works
18
+
19
+ For full dashboard functionality, upload a CSV or XLS file with the following columns:
20
+ - `Image_filename`*: Filename of each image, must be unique. **Note:** Images should be in PNG or JPEG format, TIFF may fail to render in the sample image display.
21
+ - `Species`: Species of each sample.
22
+ - `Subspecies`: Subspecies of each sample.
23
+ - `View`: View of the sample (eg., 'ventral' or 'dorsal' for butterflies).
24
+ - `Sex`: Sex of each sample.
25
+ - `hybrid_stat`: Hybrid status of each sample (eg., 'valid_subspecies', 'subspecies_synonym', or 'unknown').
26
+ - `lat`*: Latitude at which image was taken or specimen was collected.
27
+ - `lon`*: Longitude at which image was taken or specimen was collected.
28
+ - `file_url`*: URL to access file.
29
+
30
+ ***Note:**
31
+ - `lat` and `lon` columns are not required to utilize the dashboard, but there will be no map view if they are not included.
32
+ - `Image_filename` and `file_url` are not required, but there will be no sample images option if either one is not included.
run.sh ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ #!/bin/bash
2
+ gunicorn -w 5 -b :7860 -t 360 dashboard:server