jfataphd commited on
Commit
c217f68
1 Parent(s): 0bb1f3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -8
app.py CHANGED
@@ -927,13 +927,9 @@ if query:
927
 
928
 
929
  def save_comment(comment):
930
- with open('comments.txt', 'a') as f:
931
- f.write(f'{comment}\n')
932
-
933
-
934
- def save_comment_threaded(comment):
935
- t = threading.Thread(target=save_comment, args=(comment,))
936
- t.start()
937
 
938
 
939
  st.title("Abstractalytics Web App")
@@ -944,7 +940,7 @@ if query:
944
 
945
  if st.button("Submit"):
946
  if user_comment:
947
- save_comment_threaded(user_comment)
948
  st.success("Your comment has been saved. Thank you for your feedback!")
949
  else:
950
  st.warning("Please enter a comment before submitting.")
 
927
 
928
 
929
  def save_comment(comment):
930
+ with open('comments.txt', 'a') as f:
931
+ f.write(f'{comment}\n')
932
+ print('Comment saved to file.')
 
 
 
 
933
 
934
 
935
  st.title("Abstractalytics Web App")
 
940
 
941
  if st.button("Submit"):
942
  if user_comment:
943
+ save_comment(user_comment)
944
  st.success("Your comment has been saved. Thank you for your feedback!")
945
  else:
946
  st.warning("Please enter a comment before submitting.")