ppsingh commited on
Commit
d70c8d8
1 Parent(s): 27d5216

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -16,8 +16,9 @@ directory = os.getcwd()
16
  files = Path(directory).glob('*')
17
  for file in files:
18
  st.write(file)
19
-
20
-
 
21
  data = pd.read_csv("test1.csv")
22
  for line in data:
23
  st.write(line)
@@ -28,6 +29,6 @@ if st.button('Submit'):
28
  data = data.append(new_row, ignore_index=True)
29
  st.write(data)
30
  st.write(os.getcwd())
31
- data.to_csv('test1.csv', index= False)
32
 
33
- st.write(os.environ.get("HF_TOKEN"))
 
16
  files = Path(directory).glob('*')
17
  for file in files:
18
  st.write(file)
19
+
20
+ auth_token = os.environ.get("TOKEN_FROM_SECRET") or True
21
+ st.write(auth_token)
22
  data = pd.read_csv("test1.csv")
23
  for line in data:
24
  st.write(line)
 
29
  data = data.append(new_row, ignore_index=True)
30
  st.write(data)
31
  st.write(os.getcwd())
32
+ data.to_csv('test.csv', index= False)
33
 
34
+