osbm commited on
Commit
e326f0c
·
1 Parent(s): b0719e4
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -34,6 +34,17 @@ def get_list_of_images():
34
 
35
  def get_one_from_queue(voter: str):
36
  # get an image for the voter or return False if no image is left
 
 
 
 
 
 
 
 
 
 
 
37
 
38
  return None
39
 
 
34
 
35
  def get_one_from_queue(voter: str):
36
  # get an image for the voter or return False if no image is left
37
+ # aifred-smart-life-coach/labels labels dataset
38
+ # labels dataset multiple csv files named as [voter name].csv
39
+ # each csv file has the image image path vote date, votes
40
+ files = api.list_repo_tree(repo_id="aifred-smart-life-coach/labels", repo_type="dataset", recursive=True,)
41
+
42
+ for file in files:
43
+ if file.path == f"{voter}.csv":
44
+ df = pd.read_csv(api.download_file(file.path))
45
+ print(df)
46
+
47
+
48
 
49
  return None
50