Spaces:
Running
Running
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -2
src/streamlit_app.py
CHANGED
@@ -3,7 +3,6 @@ import base64
|
|
3 |
import requests
|
4 |
import json
|
5 |
from PIL import Image
|
6 |
-
import io
|
7 |
|
8 |
st.set_page_config(page_title="Solar Rooftop Analyzer", layout="centered")
|
9 |
st.title("\U0001F31E Solar Rooftop Analysis")
|
@@ -73,7 +72,7 @@ with st.form("solar_form"):
|
|
73 |
location = st.text_input("Location")
|
74 |
budget = st.number_input("Budget (INR)", min_value=10000.0, step=1000.0)
|
75 |
submitted = st.form_submit_button("Analyze")
|
76 |
-
|
77 |
if submitted:
|
78 |
if image and location and budget:
|
79 |
st.image(image, caption="Uploaded Rooftop Image", use_column_width=True)
|
|
|
3 |
import requests
|
4 |
import json
|
5 |
from PIL import Image
|
|
|
6 |
|
7 |
st.set_page_config(page_title="Solar Rooftop Analyzer", layout="centered")
|
8 |
st.title("\U0001F31E Solar Rooftop Analysis")
|
|
|
72 |
location = st.text_input("Location")
|
73 |
budget = st.number_input("Budget (INR)", min_value=10000.0, step=1000.0)
|
74 |
submitted = st.form_submit_button("Analyze")
|
75 |
+
image = Image.open(file_name)
|
76 |
if submitted:
|
77 |
if image and location and budget:
|
78 |
st.image(image, caption="Uploaded Rooftop Image", use_column_width=True)
|