Commit
·
03d5d72
1
Parent(s):
9c0d256
Update app.py
Browse files
app.py
CHANGED
@@ -51,12 +51,12 @@ def generate_questions(article,num_que):
|
|
51 |
}
|
52 |
generated_questions = summarized_data.get("generated_questions",'')
|
53 |
add_csv = [article, generated_questions, num_que]
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
# with open(DATA_FILE, "r") as file:
|
61 |
# data = json.load(file)
|
62 |
# data.append(entry)
|
|
|
51 |
}
|
52 |
generated_questions = summarized_data.get("generated_questions",'')
|
53 |
add_csv = [article, generated_questions, num_que]
|
54 |
+
with open(DATA_FILE, "a") as f:
|
55 |
+
writer = csv.writer(f)
|
56 |
+
# write the data
|
57 |
+
writer.writerow(add_csv)
|
58 |
+
commit_url = repo.push_to_hub()
|
59 |
+
print(commit_url)
|
60 |
# with open(DATA_FILE, "r") as file:
|
61 |
# data = json.load(file)
|
62 |
# data.append(entry)
|