Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -65,16 +65,14 @@ st.markdown("""
|
|
65 |
background-color: #1A1A1A !important;
|
66 |
}
|
67 |
.custom-table {
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
border: 1px solid #aaa;
|
77 |
-
line-height: 1.6;
|
78 |
|
79 |
}
|
80 |
</style>
|
@@ -228,6 +226,9 @@ if fetch_data:
|
|
228 |
suggestions.append((row['title'], suggested_subject))
|
229 |
if suggestions:
|
230 |
suggestions_df = pd.DataFrame(suggestions, columns=["Title", "Suggested Subject"])
|
|
|
|
|
|
|
231 |
st.markdown("<div class='custom-table'>" + suggestions_df.to_markdown(index=True) + "</div>", unsafe_allow_html=True)
|
232 |
|
233 |
else:
|
|
|
65 |
background-color: #1A1A1A !important;
|
66 |
}
|
67 |
.custom-table {
|
68 |
+
background-color: #D3D3D3;
|
69 |
+
color: #1A1A1A;
|
70 |
+
font-family: monospace;
|
71 |
+
padding: 1rem;
|
72 |
+
border-radius: 8px;
|
73 |
+
overflow-x: auto;
|
74 |
+
white-space: pre;
|
75 |
+
border: 1px solid #ccc;
|
|
|
|
|
76 |
|
77 |
}
|
78 |
</style>
|
|
|
226 |
suggestions.append((row['title'], suggested_subject))
|
227 |
if suggestions:
|
228 |
suggestions_df = pd.DataFrame(suggestions, columns=["Title", "Suggested Subject"])
|
229 |
+
st.subheader("📋 Suggested Metadata Enhancements Table")
|
230 |
+
st.table(suggestions_df)
|
231 |
+
|
232 |
st.markdown("<div class='custom-table'>" + suggestions_df.to_markdown(index=True) + "</div>", unsafe_allow_html=True)
|
233 |
|
234 |
else:
|