Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ import csv
|
|
8 |
|
9 |
# assign directory
|
10 |
|
11 |
-
auth_token = os.environ.get("
|
12 |
-
|
13 |
#data = pd.read_csv("test.csv")
|
14 |
#for line in data:
|
15 |
|
@@ -17,7 +17,7 @@ auth_token = os.environ.get("TOKEN_FROM_SECRET") or True
|
|
17 |
|
18 |
title = st.text_input('Movie title', 'Life of Brian')
|
19 |
if st.button('Submit'):
|
20 |
-
new_row =
|
21 |
# data = data.append(new_row, ignore_index=True)
|
22 |
# st.write(data)
|
23 |
# st.write(os.getcwd())
|
@@ -26,7 +26,7 @@ if st.button('Submit'):
|
|
26 |
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=
|
30 |
df = pd.read_csv('data/test.csv')
|
31 |
st.write(df)
|
32 |
# st.write('data/test.csv')
|
|
|
8 |
|
9 |
# assign directory
|
10 |
|
11 |
+
auth_token = os.environ.get("space_to_dataset") or True
|
12 |
+
st.write(auth_token)
|
13 |
#data = pd.read_csv("test.csv")
|
14 |
#for line in data:
|
15 |
|
|
|
17 |
|
18 |
title = st.text_input('Movie title', 'Life of Brian')
|
19 |
if st.button('Submit'):
|
20 |
+
new_row = title
|
21 |
# data = data.append(new_row, ignore_index=True)
|
22 |
# st.write(data)
|
23 |
# st.write(os.getcwd())
|
|
|
26 |
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= auth_token)
|
30 |
df = pd.read_csv('data/test.csv')
|
31 |
st.write(df)
|
32 |
# st.write('data/test.csv')
|