ppsingh commited on
Commit
c8b0725
1 Parent(s): 2e4fde6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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')