lokeshloki143 commited on
Commit
f0cc005
Β·
verified Β·
1 Parent(s): 7f9d218

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +110 -0
app.py ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from PIL import Image
3
+ import time
4
+
5
+ # --- Page Config ---
6
+ st.set_page_config(page_title="TerraFusion Studio", layout="wide", page_icon="🌍")
7
+
8
+ # --- Style ---
9
+ st.markdown("""
10
+ <style>
11
+ body {
12
+ background-color: #0f0f0f;
13
+ color: white;
14
+ font-family: 'Poppins', sans-serif;
15
+ }
16
+ .main {
17
+ padding: 20px;
18
+ }
19
+ .header {
20
+ color: #00ff88;
21
+ font-weight: bold;
22
+ font-size: 32px;
23
+ margin-bottom: 10px;
24
+ }
25
+ .sub-header {
26
+ color: #00ffaa;
27
+ font-weight: bold;
28
+ font-size: 22px;
29
+ }
30
+ .box {
31
+ background-color: #111;
32
+ padding: 15px;
33
+ border-radius: 10px;
34
+ box-shadow: 0px 0px 10px rgba(0,255,153,0.2);
35
+ margin-top: 10px;
36
+ }
37
+ </style>
38
+ """, unsafe_allow_html=True)
39
+
40
+ # --- Header ---
41
+ st.markdown('<div class="header">πŸ›°οΈ TerraFusion Studio</div>', unsafe_allow_html=True)
42
+ st.write("Manage 3D City, Mapping, Powerline, Highway, and other infrastructure projects with Terra products suite.")
43
+
44
+ # --- Columns Layout ---
45
+ col1, col2 = st.columns(2)
46
+
47
+ # --- INDUSTRIES ---
48
+ with col1:
49
+ st.markdown('<div class="sub-header">🌍 Industries</div>', unsafe_allow_html=True)
50
+ industries = [
51
+ "3D City",
52
+ "Mapping",
53
+ "Powerline",
54
+ "Road and Highway",
55
+ "Railway and Tram",
56
+ "Water Resources",
57
+ "Forest and Parks",
58
+ "Mining"
59
+ ]
60
+ for i in industries:
61
+ st.markdown(f"➀ {i}")
62
+
63
+ # --- PRODUCTS ---
64
+ with col2:
65
+ st.markdown('<div class="sub-header">βš™οΈ Products</div>', unsafe_allow_html=True)
66
+ products = [
67
+ "TerraScan",
68
+ "TerraModeler",
69
+ "TerraMatch",
70
+ "TerraPhoto",
71
+ "TerraStereo",
72
+ "TerraBatch",
73
+ "Other Products"
74
+ ]
75
+ for item in products:
76
+ st.markdown(f"βœ”οΈ {item}")
77
+
78
+ st.markdown("---")
79
+
80
+ # --- FILE UPLOAD ---
81
+ st.markdown('<div class="sub-header">πŸ“‚ Upload Work Files</div>', unsafe_allow_html=True)
82
+ uploaded_file = st.file_uploader("Upload a geo or model file (LAS, LAZ, CSV, or TIF)", type=["las", "laz", "csv", "tif"])
83
+
84
+ if uploaded_file:
85
+ st.success(f"βœ… File Uploaded: **{uploaded_file.name}**")
86
+ st.info("Processing and analyzing file... Please wait.")
87
+ with st.spinner("Running Terra tools..."):
88
+ for i in range(100):
89
+ time.sleep(0.01)
90
+ st.progress(i + 1)
91
+ st.success("πŸ’‘ Processing completed successfully!")
92
+
93
+ st.markdown("---")
94
+
95
+ # --- BATCH RUN SECTION ---
96
+ st.markdown('<div class="sub-header">⚑ Automated Batch Operation</div>', unsafe_allow_html=True)
97
+ st.write("Automatically classify, match, and model massive datasets across projects.")
98
+ if st.button("Run Batch Process"):
99
+ with st.spinner("Executing operations..."):
100
+ time.sleep(3)
101
+ st.success("Batch operation completed successfully βœ…")
102
+
103
+ st.markdown("---")
104
+
105
+ # --- FOOTER ---
106
+ st.markdown("""
107
+ <div style='text-align:center; margin-top:40px; color:#888;'>
108
+ Built with ❀️ using Streamlit β€” Designed for Geo and Terra Industries
109
+ </div>
110
+ """, unsafe_allow_html=True)