treizh commited on
Commit
0f77d6e
·
verified ·
1 Parent(s): 0d5d243

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +23 -0
app.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from pathlib import Path
2
+
3
+ import panel as pn
4
+
5
+ import scripts.tap_const as tc
6
+
7
+ EXPERIMENT = "72AC_PhD_2404"
8
+
9
+ # Setup Paths
10
+ if tc.phenopsis.joinpath(EXPERIMENT).is_dir() is True:
11
+ pt_data = tc.data
12
+ pt_images = tc.phenopsis.joinpath(EXPERIMENT)
13
+ pt_rotations = tc.dataout.joinpath("rotation_angles").joinpath(f"{EXPERIMENT}")
14
+ else:
15
+ here = Path(".").parent
16
+ pt_data = here.joinpath("data")
17
+ pt_images = here.joinpath("images").joinpath(EXPERIMENT)
18
+ pt_rotations = here.joinpath("rotation_angles").joinpath(f"{EXPERIMENT}")
19
+
20
+
21
+ pn.extension("plotly", "tabulator")
22
+
23
+ template = pn.template.BootstrapTemplate(title="Raltonia Annotation Tool")