shreyankisiri commited on
Commit
e9d2aa2
·
verified ·
1 Parent(s): 967892a

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +16 -16
src/streamlit_app.py CHANGED
@@ -90,29 +90,29 @@ def create_placeholder_image(text, width=800, height=600, bg_color="#2196F3", te
90
  # Update these paths to point to your actual local images
91
  SAMPLE_ANALYSES = [
92
  {
93
- "image_path": "/home/shreyank/Isro/output.png", # Update this path
94
- "caption": "Flood vulnerability analysis of Chennai during monsoon season",
95
  "query": "Create a flood risk assessment map for Chennai during monsoon season"
96
  },
97
  {
98
- "image_path": "images/heat_island_mumbai.png", # Update this path
99
- "caption": "Urban heat island analysis of Mumbai metropolitan area",
100
- "query": "Analyze urban heat island effect in Mumbai using satellite imagery"
101
  },
102
  {
103
- "image_path": "images/deforestation_amazon.png", # Update this path
104
- "caption": "Deforestation monitoring in Amazon rainforest",
105
- "query": "Monitor deforestation patterns in Amazon rainforest using multi-temporal satellite data"
106
  },
107
  {
108
- "image_path": "images/crop_yield_punjab.png", # Update this path
109
- "caption": "Crop yield prediction analysis for Punjab agricultural regions",
110
- "query": "Predict crop yield for wheat cultivation in Punjab using satellite data"
111
  },
112
  {
113
- "image_path": "images/wildfire_california.png", # Update this path
114
- "caption": "Wildfire risk assessment and spread modeling",
115
- "query": "Create wildfire risk maps and predict fire spread patterns for California"
116
  }
117
  ]
118
 
@@ -599,7 +599,7 @@ st.markdown("""
599
  <div class="header-container">
600
  <div class="header-content">
601
  <div>
602
- <img src="https://www.isro.gov.in/sites/default/files/flipping_book/ISRO%20Annual%20Report%202022-23/assets/basic-html/page-1_1.jpg"
603
  alt="ISRO Logo" class="logo" onerror="this.src='data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNDAiIGN5PSI0MCIgcj0iNDAiIGZpbGw9IiMwMDY2Q0MiLz4KPHRleHQgeD0iNDAiIHk9IjQ1IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmaWxsPSJ3aGl0ZSIgZm9udC1zaXplPSIxNCIgZm9udC13ZWlnaHQ9ImJvbGQiPklTUk88L3RleHQ+Cjwvc3ZnPgo='">
604
  </div>
605
  <div>
@@ -647,7 +647,7 @@ with col1:
647
  st.image(
648
  current_image_path,
649
  caption=current_analysis['caption'],
650
- use_column_width=True
651
  )
652
  else:
653
  # Show a placeholder message when image is not found
 
90
  # Update these paths to point to your actual local images
91
  SAMPLE_ANALYSES = [
92
  {
93
+ "image_path": "output/Chennai_dem_filled.png", # Update this path
94
+ "caption": "Digital elevation model for CHENNAI,tamil nadu , India",
95
  "query": "Create a flood risk assessment map for Chennai during monsoon season"
96
  },
97
  {
98
+ "image_path": "output/chennai_impervious.png", # Update this path
99
+ "caption": "Impervious Structure in chennai",
100
+ "query": "Create a flood risk assessment map for Chennai during monsoon season"
101
  },
102
  {
103
+ "image_path": "output/chennai_flow_direction.png", # Update this path
104
+ "caption": "Chennai Water flow direction",
105
+ "query": "Create a flood risk assessment map for Chennai during monsoon season"
106
  },
107
  {
108
+ "image_path": "output/chennai_streams.png", # Update this path
109
+ "caption": "Chennai Stream Flow",
110
+ "query": "Create a flood risk assessment map for Chennai during monsoon season"
111
  },
112
  {
113
+ "image_path": "output/chennai_raods.png", # Update this path
114
+ "caption": "Roads Pattern of Chennai",
115
+ "query": "Create a flood risk assessment map for Chennai during monsoon season"
116
  }
117
  ]
118
 
 
599
  <div class="header-container">
600
  <div class="header-content">
601
  <div>
602
+ <img src="https://ih1.redbubble.net/image.2734932759.2157/st,small,507x507-pad,600x600,f8f8f8.jpg"
603
  alt="ISRO Logo" class="logo" onerror="this.src='data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNDAiIGN5PSI0MCIgcj0iNDAiIGZpbGw9IiMwMDY2Q0MiLz4KPHRleHQgeD0iNDAiIHk9IjQ1IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmaWxsPSJ3aGl0ZSIgZm9udC1zaXplPSIxNCIgZm9udC13ZWlnaHQ9ImJvbGQiPklTUk88L3RleHQ+Cjwvc3ZnPgo='">
604
  </div>
605
  <div>
 
647
  st.image(
648
  current_image_path,
649
  caption=current_analysis['caption'],
650
+
651
  )
652
  else:
653
  # Show a placeholder message when image is not found