JaMugen commited on
Commit
a3ba55e
·
1 Parent(s): 73d38e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -36,14 +36,16 @@ def main():
36
  end_index = start_index + 6
37
 
38
  # Define CSS styles for table cells
39
- timestamp_style = "padding: 8px; background-color: red; color: rgb(118, 133, 123); display: flex; align-items: center;"
40
- original_style = "padding: 8px; background-color: black; color: white; display: flex; align-items: center;"
41
 
 
 
42
  st.write(
43
- "<style> table { width: 100%; } th, td { border: 1px solid black; } </style>",
44
  unsafe_allow_html=True,
45
  )
46
- st.write("<table><tr><th>Timestamp</th><th>Original</th></tr>", unsafe_allow_html=True)
47
 
48
  for i in range(start_index, min(end_index, len(captions_list))):
49
  st.write(
 
36
  end_index = start_index + 6
37
 
38
  # Define CSS styles for table cells
39
+ timestamp_style = "padding: 8px; background-color: rgb(255, 0, 0); color: rgb(118, 133, 123); display: flex; align-items: center;"
40
+ original_style = "padding: 8px; background-color: rgb(0, 0, 0); color: rgb(255, 255, 255); display: flex; align-items: center;"
41
 
42
+ # Display caption table
43
+ st.write("## Caption Table")
44
  st.write(
45
+ "<style> table { width: 100%; table-layout: fixed; } th, td { border: 1px solid black; word-wrap: break-word; } </style>",
46
  unsafe_allow_html=True,
47
  )
48
+ st.write("<table><tr><th style='width: 50%;'>Timestamp</th><th style='width: 50%;'>Original</th></tr>", unsafe_allow_html=True)
49
 
50
  for i in range(start_index, min(end_index, len(captions_list))):
51
  st.write(