Paras Shah commited on
Commit
846b712
·
1 Parent(s): 3e0941e

Change images

Browse files
Files changed (4) hide show
  1. app.py +25 -15
  2. static/canopy.png +0 -0
  3. static/header.png +0 -0
  4. static/sidebar.png +0 -0
app.py CHANGED
@@ -18,7 +18,8 @@ with st.spinner("Loading PointNet++ model..."):
18
  classifier = pn2.get_model(num_class=4, normal_channel=False)
19
  classifier.load_state_dict(checkpoint['model_state_dict'])
20
  classifier.eval()
21
-
 
22
  st.sidebar.markdown(
23
  body=
24
  "<div style='text-align: justify;'>The species <strong>Pinus sylvestris "
@@ -46,22 +47,14 @@ st.sidebar.markdown(
46
  ,
47
  unsafe_allow_html=True,
48
  )
 
 
49
  st.markdown(
50
- """
51
- <style>
52
- [data-testid="stSidebar"] {
53
- background-image: url("static/sidebar.png");
54
- background-size: cover;
55
- background-position: center;
56
- }
57
- </style>
58
- """,
59
  unsafe_allow_html=True
60
  )
61
 
62
- st.header("ArborSphere")
63
- st.subheader("Tree Identity and Biometrics")
64
-
65
  uploaded_file = st.file_uploader(
66
  label="Upload Point Cloud Data",
67
  type=['laz', 'las', 'pcd'],
@@ -70,7 +63,7 @@ uploaded_file = st.file_uploader(
70
 
71
  col1, col2 = st.columns(2)
72
  with col1:
73
- st.image("static/canopy.png", use_column_width=True)
74
  with col2:
75
  CANOPY_VOLUME = st.slider(
76
  label="Canopy Volume in % (Z)",
@@ -96,7 +89,7 @@ with col2:
96
 
97
  col1, col2 = st.columns(2)
98
  with col1:
99
- st.image("static/dbh.png", use_column_width=True)
100
  with col2:
101
  DBH_HEIGHT = st.slider(
102
  label="DBH (Diameter above Breast Height, in metres) (H)",
@@ -239,3 +232,20 @@ if proceed:
239
 
240
  except Exception as e:
241
  st.error(f"An error occured: {str(e)}")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  classifier = pn2.get_model(num_class=4, normal_channel=False)
19
  classifier.load_state_dict(checkpoint['model_state_dict'])
20
  classifier.eval()
21
+
22
+ st.sidebar.image("static/sidebar.png")
23
  st.sidebar.markdown(
24
  body=
25
  "<div style='text-align: justify;'>The species <strong>Pinus sylvestris "
 
47
  ,
48
  unsafe_allow_html=True,
49
  )
50
+
51
+ st.image("static/header.png")
52
  st.markdown(
53
+ "<h1>ArborSphere<br>"
54
+ "Tree Identity and Biometrics</h1>",
 
 
 
 
 
 
 
55
  unsafe_allow_html=True
56
  )
57
 
 
 
 
58
  uploaded_file = st.file_uploader(
59
  label="Upload Point Cloud Data",
60
  type=['laz', 'las', 'pcd'],
 
63
 
64
  col1, col2 = st.columns(2)
65
  with col1:
66
+ st.image("static/canopy.png", use_container_width=True)
67
  with col2:
68
  CANOPY_VOLUME = st.slider(
69
  label="Canopy Volume in % (Z)",
 
89
 
90
  col1, col2 = st.columns(2)
91
  with col1:
92
+ st.image("static/dbh.png", use_container_width=True)
93
  with col2:
94
  DBH_HEIGHT = st.slider(
95
  label="DBH (Diameter above Breast Height, in metres) (H)",
 
232
 
233
  except Exception as e:
234
  st.error(f"An error occured: {str(e)}")
235
+
236
+ footer="""<style>
237
+ .footer {
238
+ position: fixed;
239
+ left: 0;
240
+ bottom: 0;
241
+ width: 100%;
242
+ background-color: white;
243
+ color: black;
244
+ text-align: center;
245
+ }
246
+ </style>
247
+ <div class="footer">
248
+ <p>Developed at N-15 Tech Lab (WII, Dehradun)</p>
249
+ </div>
250
+ """
251
+ st.markdown(footer, unsafe_allow_html=True)
static/canopy.png CHANGED
static/header.png ADDED
static/sidebar.png CHANGED