Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -91,7 +91,7 @@ from datasets import load_dataset
|
|
| 91 |
def push_to_dataset(feedback, comments):
|
| 92 |
# Load existing dataset or create a new one if it doesn't exist
|
| 93 |
try:
|
| 94 |
-
ds = load_dataset("YashB1/Feedbacks"
|
| 95 |
except FileNotFoundError:
|
| 96 |
# If dataset doesn't exist, create a new one
|
| 97 |
ds = Dataset.from_dict({"feedback": [], "comments": []})
|
|
@@ -102,7 +102,7 @@ def push_to_dataset(feedback, comments):
|
|
| 102 |
ds = concatenate_datasets([ds,new_data])
|
| 103 |
|
| 104 |
# Save dataset back to Hugging Face Hub
|
| 105 |
-
ds.push_to_hub("YashB1/Feedbacks"
|
| 106 |
|
| 107 |
def collect_feedback():
|
| 108 |
st.title("Feedback Collection App")
|
|
|
|
| 91 |
def push_to_dataset(feedback, comments):
|
| 92 |
# Load existing dataset or create a new one if it doesn't exist
|
| 93 |
try:
|
| 94 |
+
ds = load_dataset("YashB1/Feedbacks")
|
| 95 |
except FileNotFoundError:
|
| 96 |
# If dataset doesn't exist, create a new one
|
| 97 |
ds = Dataset.from_dict({"feedback": [], "comments": []})
|
|
|
|
| 102 |
ds = concatenate_datasets([ds,new_data])
|
| 103 |
|
| 104 |
# Save dataset back to Hugging Face Hub
|
| 105 |
+
ds.push_to_hub("YashB1/Feedbacks")
|
| 106 |
|
| 107 |
def collect_feedback():
|
| 108 |
st.title("Feedback Collection App")
|