JaMugen commited on
Commit
8a40335
·
1 Parent(s): 47ef009

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -36,11 +36,16 @@ def main():
36
 
37
  start_index = st.session_state.get('start_index', 0)
38
  end_index = start_index + 6
39
-
40
  # Create DataFrame from captions_list
41
  df = pd.DataFrame(captions_list)
42
 
43
  # Display caption table with st.table
 
 
 
 
 
44
  st.write("## Caption Table")
45
  st.table(df[['Timestamp', 'Original']].iloc[start_index:end_index])
46
 
 
36
 
37
  start_index = st.session_state.get('start_index', 0)
38
  end_index = start_index + 6
39
+
40
  # Create DataFrame from captions_list
41
  df = pd.DataFrame(captions_list)
42
 
43
  # Display caption table with st.table
44
+ with open("styles.css", "r") as f:
45
+ css = f.read()
46
+
47
+ # Embed the CSS into Streamlit
48
+ st.markdown(f"<style>{css}</style>", unsafe_allow_html=True)
49
  st.write("## Caption Table")
50
  st.table(df[['Timestamp', 'Original']].iloc[start_index:end_index])
51