Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -167,9 +167,9 @@ def load_content_from_hf(repo_name="SE-Arena/votes"):
|
|
167 |
|
168 |
try:
|
169 |
api = HfApi()
|
170 |
-
|
171 |
# List all files in the repository
|
172 |
-
repo_files = api.list_repo_files(repo_id=
|
173 |
|
174 |
# Filter files by current year and month
|
175 |
feedback_files = [file for file in repo_files if year_month in file]
|
|
|
167 |
|
168 |
try:
|
169 |
api = HfApi()
|
170 |
+
print('here')
|
171 |
# List all files in the repository
|
172 |
+
repo_files = api.list_repo_files(repo_id=repo_name, repo_type="dataset")
|
173 |
|
174 |
# Filter files by current year and month
|
175 |
feedback_files = [file for file in repo_files if year_month in file]
|