Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
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 |
|