jfataphd commited on
Commit
524cf56
1 Parent(s): 87b11d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -947,7 +947,8 @@ if query:
947
  dataset = Dataset.from_dict({'id': [], 'text': []})
948
 
949
  # Append the new comment to the dataset
950
- dataset = dataset.append({'id': len(dataset), 'text': comment})
 
951
 
952
  # Save the dataset to disk
953
  dataset.save_to_disk('comments')
@@ -955,6 +956,7 @@ if query:
955
  print('Comment saved to dataset.')
956
 
957
 
 
958
  st.title("Abstractalytics Web App")
959
  st.write("We appreciate your feedback!")
960
 
 
947
  dataset = Dataset.from_dict({'id': [], 'text': []})
948
 
949
  # Append the new comment to the dataset
950
+ new_comment = {'id': len(dataset), 'text': comment}
951
+ dataset = dataset.extend([new_comment])
952
 
953
  # Save the dataset to disk
954
  dataset.save_to_disk('comments')
 
956
  print('Comment saved to dataset.')
957
 
958
 
959
+
960
  st.title("Abstractalytics Web App")
961
  st.write("We appreciate your feedback!")
962