Spaces:
Running
Running
Update the markdown folder name
Browse files
app.py
CHANGED
|
@@ -42,10 +42,10 @@ st.markdown("""
|
|
| 42 |
</style>
|
| 43 |
""", unsafe_allow_html=True)
|
| 44 |
|
| 45 |
-
def get_all_docs(repo_path="
|
| 46 |
"""
|
| 47 |
-
Gets all document IDs from the nested structure in
|
| 48 |
-
Structure:
|
| 49 |
"""
|
| 50 |
all_docs = []
|
| 51 |
|
|
@@ -125,7 +125,7 @@ def main():
|
|
| 125 |
st.title("Document Analysis Leaderboard")
|
| 126 |
|
| 127 |
# Get all doc-ids from the fixed repository path
|
| 128 |
-
repo_path = "
|
| 129 |
|
| 130 |
with st.spinner("Loading documents..."):
|
| 131 |
all_docs = get_all_docs(repo_path)
|
|
|
|
| 42 |
</style>
|
| 43 |
""", unsafe_allow_html=True)
|
| 44 |
|
| 45 |
+
def get_all_docs(repo_path="markdowns"):
|
| 46 |
"""
|
| 47 |
+
Gets all document IDs from the nested structure in markdowns directory.
|
| 48 |
+
Structure: markdowns/folder_id/doc_id/
|
| 49 |
"""
|
| 50 |
all_docs = []
|
| 51 |
|
|
|
|
| 125 |
st.title("Document Analysis Leaderboard")
|
| 126 |
|
| 127 |
# Get all doc-ids from the fixed repository path
|
| 128 |
+
repo_path = "markdowns"
|
| 129 |
|
| 130 |
with st.spinner("Loading documents..."):
|
| 131 |
all_docs = get_all_docs(repo_path)
|