Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,18 @@ import os
|
|
6 |
#repo = Repository(
|
7 |
# local_dir="data", clone_from='ppsingh/annotation_data', use_auth_token=HF_TOKEN
|
8 |
#)
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
data = pd.read_csv("test.csv")
|
11 |
for line in data:
|
12 |
st.write(line)
|
|
|
6 |
#repo = Repository(
|
7 |
# local_dir="data", clone_from='ppsingh/annotation_data', use_auth_token=HF_TOKEN
|
8 |
#)
|
9 |
+
from pathlib import Path
|
10 |
+
|
11 |
+
# assign directory
|
12 |
+
directory = os.getcwd()
|
13 |
+
|
14 |
+
# iterate over files in
|
15 |
+
# that directory
|
16 |
+
files = Path(directory).glob('*')
|
17 |
+
for file in files:
|
18 |
+
st.write(file)
|
19 |
+
|
20 |
+
|
21 |
data = pd.read_csv("test.csv")
|
22 |
for line in data:
|
23 |
st.write(line)
|