Spaces:
Sleeping
Sleeping
Truong-Phuc Nguyen
commited on
check directory
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import pandas as pd
|
2 |
import streamlit as st
|
3 |
import re
|
|
|
4 |
|
5 |
st.set_page_config(page_icon='🍃', page_title='MRC for Legal Document Dataset checker', layout='wide', initial_sidebar_state="collapsed")
|
6 |
|
@@ -13,6 +14,14 @@ if 'idx' not in st.session_state:
|
|
13 |
|
14 |
st.markdown(f"<h4 style='text-align: center;'>Sample {st.session_state.idx + 1}/{len(df)}</h4>", unsafe_allow_html=True)
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
col_1, col_2, col_3, col_4, col_5, col_6, col_7, col_8, col_9, col_10 = st.columns([1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
|
17 |
|
18 |
btn_previous = col_1.button(label=':arrow_backward: Previous sample', use_container_width=True)
|
|
|
1 |
import pandas as pd
|
2 |
import streamlit as st
|
3 |
import re
|
4 |
+
import os
|
5 |
|
6 |
st.set_page_config(page_icon='🍃', page_title='MRC for Legal Document Dataset checker', layout='wide', initial_sidebar_state="collapsed")
|
7 |
|
|
|
14 |
|
15 |
st.markdown(f"<h4 style='text-align: center;'>Sample {st.session_state.idx + 1}/{len(df)}</h4>", unsafe_allow_html=True)
|
16 |
|
17 |
+
root_folder = './main/'
|
18 |
+
|
19 |
+
# Lấy danh sách các thư mục và tập tin trong thư mục gốc
|
20 |
+
contents = os.listdir(root_folder)
|
21 |
+
|
22 |
+
# Hiển thị tiêu đề
|
23 |
+
st.title("Danh sách thư mục và tập tin trong thư mục gốc")
|
24 |
+
|
25 |
col_1, col_2, col_3, col_4, col_5, col_6, col_7, col_8, col_9, col_10 = st.columns([1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
|
26 |
|
27 |
btn_previous = col_1.button(label=':arrow_backward: Previous sample', use_container_width=True)
|