Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,6 +35,7 @@ for file in files:
|
|
35 |
st.write(file)
|
36 |
|
37 |
with open(DATA_FILE, "a") as csvfile:
|
|
|
38 |
writer.writerow({'Sentences': new_row})
|
39 |
repo.push_to_hub('adding new line')
|
40 |
st.write('Succcess')
|
|
|
35 |
st.write(file)
|
36 |
|
37 |
with open(DATA_FILE, "a") as csvfile:
|
38 |
+
writer = csv.DictWriter(csvfile, fieldnames=["Sentences"])
|
39 |
writer.writerow({'Sentences': new_row})
|
40 |
repo.push_to_hub('adding new line')
|
41 |
st.write('Succcess')
|