Spaces:
Configuration error
Configuration error
rungalileo
commited on
Commit
•
3fd3ce2
1
Parent(s):
e49dbc7
Create new file
Browse files- pages/label-viewer.py +13 -0
pages/label-viewer.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
from app import SessionKey, get_export_df
|
4 |
+
|
5 |
+
st.set_page_config(layout="wide")
|
6 |
+
st.header("🔎 Export Viewer")
|
7 |
+
|
8 |
+
df = st.session_state.get(SessionKey.df, [])
|
9 |
+
if len(df):
|
10 |
+
df = get_export_df()
|
11 |
+
st.dataframe(df)
|
12 |
+
else:
|
13 |
+
st.subheader("Label samples to see them here!")
|