shukdevdatta123 commited on
Commit
4daab67
·
verified ·
1 Parent(s): b029384

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -117,7 +117,7 @@ elif option == "View Previous Conversations":
117
  # View data summary
118
  elif option == "View Data Summary":
119
  if os.path.exists(summary_file):
120
- with open(summary_file, "r") as file:
121
  st.text_area("Data Summary", file.read(), height=300)
122
  else:
123
  st.warning("No data summary found.")
 
117
  # View data summary
118
  elif option == "View Data Summary":
119
  if os.path.exists(summary_file):
120
+ with open(summary_file, "r", encoding="utf-8", errors="replace") as file:
121
  st.text_area("Data Summary", file.read(), height=300)
122
  else:
123
  st.warning("No data summary found.")