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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
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
- 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.")
 
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.")