Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- 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": "/
|
| 94 |
-
"caption": "
|
| 95 |
"query": "Create a flood risk assessment map for Chennai during monsoon season"
|
| 96 |
},
|
| 97 |
{
|
| 98 |
-
"image_path": "
|
| 99 |
-
"caption": "
|
| 100 |
-
"query": "
|
| 101 |
},
|
| 102 |
{
|
| 103 |
-
"image_path": "
|
| 104 |
-
"caption": "
|
| 105 |
-
"query": "
|
| 106 |
},
|
| 107 |
{
|
| 108 |
-
"image_path": "
|
| 109 |
-
"caption": "
|
| 110 |
-
|
| 111 |
},
|
| 112 |
{
|
| 113 |
-
"image_path": "
|
| 114 |
-
"caption": "
|
| 115 |
-
|
| 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://
|
| 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 |
-
|
| 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
|