ppsingh commited on
Commit
075f350
1 Parent(s): a676f19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -8,8 +8,8 @@ import csv
8
 
9
  # assign directory
10
 
11
- auth_token = os.environ.get("TOKEN_FROM_SECRET") or True
12
- #st.write(auth_token)
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 = {'Sentences': title}
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= True)
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')