Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,18 +39,16 @@ def main():
|
|
| 39 |
|
| 40 |
# Display caption table with CSS class names
|
| 41 |
st.write("## Caption Table")
|
| 42 |
-
st.write("<table style='border-collapse: collapse; width: 100%;'>", unsafe_allow_html=True)
|
| 43 |
st.write(
|
| 44 |
-
"<tr><th
|
| 45 |
-
"<th style='padding: 8px; border: 1px solid black; background-color: #f2f2f2; font-weight: bold; text-align: center; width: 50%;'>Original</th></tr>",
|
| 46 |
unsafe_allow_html=True,
|
| 47 |
)
|
| 48 |
|
| 49 |
|
| 50 |
for i in range(start_index, min(end_index, len(captions_list))):
|
| 51 |
-
|
| 52 |
-
f"<tr><td
|
| 53 |
-
f"<td
|
| 54 |
unsafe_allow_html=True,
|
| 55 |
)
|
| 56 |
|
|
|
|
| 39 |
|
| 40 |
# Display caption table with CSS class names
|
| 41 |
st.write("## Caption Table")
|
|
|
|
| 42 |
st.write(
|
| 43 |
+
"<table><tr><th class='timestamp'>Timestamp</th><th class='original'>Original</th></tr>",
|
|
|
|
| 44 |
unsafe_allow_html=True,
|
| 45 |
)
|
| 46 |
|
| 47 |
|
| 48 |
for i in range(start_index, min(end_index, len(captions_list))):
|
| 49 |
+
st.write(
|
| 50 |
+
f"<tr><td class='timestamp'>{captions_list[i]['Timestamp']}</td>"
|
| 51 |
+
f"<td class='original'>{captions_list[i]['Original']}</td></tr>",
|
| 52 |
unsafe_allow_html=True,
|
| 53 |
)
|
| 54 |
|