Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -62,13 +62,10 @@ if latitude and longitude and st.button("Get Soil Report"):
|
|
62 |
summary = summarize_soil_report(soil_data, crop_planted)
|
63 |
|
64 |
st.subheader("📌 Simplified Soil Report Summary")
|
65 |
-
|
66 |
-
|
67 |
-
if "Coordinates:" not in line # Exclude lines containing 'Coordinates:'
|
68 |
-
)
|
69 |
-
st.write(filtered_summary)
|
70 |
|
71 |
# Option to download summary
|
72 |
-
st.download_button("Download Summary as Text",
|
73 |
else:
|
74 |
st.error("Failed to fetch soil data. Please try again later.")
|
|
|
62 |
summary = summarize_soil_report(soil_data, crop_planted)
|
63 |
|
64 |
st.subheader("📌 Simplified Soil Report Summary")
|
65 |
+
|
66 |
+
st.write(summary)
|
|
|
|
|
|
|
67 |
|
68 |
# Option to download summary
|
69 |
+
st.download_button("Download Summary as Text", summary, file_name="Soil_Report.txt")
|
70 |
else:
|
71 |
st.error("Failed to fetch soil data. Please try again later.")
|