sikeaditya commited on
Commit
57c3718
·
verified ·
1 Parent(s): 6a16d9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -62,9 +62,13 @@ 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
- st.write(summary)
 
 
 
 
66
 
67
  # Option to download summary
68
- st.download_button("Download Summary as Text", summary, file_name="Soil_Report_Summary.txt")
69
  else:
70
  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
+ filtered_summary = "\n".join(
66
+ line for line in summary.split("\n")
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", filtered_summary, file_name="Soil_Report.txt")
73
  else:
74
  st.error("Failed to fetch soil data. Please try again later.")