Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ DATASET_REPO_URL = 'ppsingh/annotation_data'
|
|
27 |
DATA_FILENAME = "test.csv"
|
28 |
DATA_FILE = os.path.join("data", DATA_FILENAME)
|
29 |
repo = Repository( local_dir="data", clone_from=DATASET_REPO_URL, repo_type="dataset", use_auth_token= True)
|
30 |
-
|
31 |
# iterate over files in
|
32 |
# that directory
|
33 |
directory = os.getcwd()
|
@@ -38,7 +38,7 @@ for file in files:
|
|
38 |
with open(DATA_FILE, "a") as csvfile:
|
39 |
writer = csv.DictWriter(csvfile, fieldnames=["Sentences"])
|
40 |
writer.writerow({'Sentences': new_row})
|
41 |
-
repo.push_to_hub('adding new line')
|
42 |
st.write('Succcess')
|
43 |
|
44 |
|
|
|
27 |
DATA_FILENAME = "test.csv"
|
28 |
DATA_FILE = os.path.join("data", DATA_FILENAME)
|
29 |
repo = Repository( local_dir="data", clone_from=DATASET_REPO_URL, repo_type="dataset", use_auth_token= True)
|
30 |
+
st.write('data/test.csv')
|
31 |
# iterate over files in
|
32 |
# that directory
|
33 |
directory = os.getcwd()
|
|
|
38 |
with open(DATA_FILE, "a") as csvfile:
|
39 |
writer = csv.DictWriter(csvfile, fieldnames=["Sentences"])
|
40 |
writer.writerow({'Sentences': new_row})
|
41 |
+
repo.push_to_hub('adding new line', use_auth_token = True)
|
42 |
st.write('Succcess')
|
43 |
|
44 |
|