Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -105,6 +105,23 @@ def load_model(model_name):
|
|
105 |
return pipeline("text-classification", model=model_name, return_all_scores=True)
|
106 |
|
107 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
page_element = """
|
109 |
<style>
|
110 |
[data-testid="stAppViewContainer"] {
|
|
|
105 |
return pipeline("text-classification", model=model_name, return_all_scores=True)
|
106 |
|
107 |
|
108 |
+
def set_custom_theme():
|
109 |
+
st.markdown("""
|
110 |
+
<style>
|
111 |
+
:root {
|
112 |
+
--primary-color: #FF4B4B;
|
113 |
+
--background-color: #FFFFFF;
|
114 |
+
--secondary-background-color: #F0F2F6;
|
115 |
+
--text-color: #262730;
|
116 |
+
--font: sans-serif;
|
117 |
+
}
|
118 |
+
</style>
|
119 |
+
""", unsafe_allow_html=True)
|
120 |
+
|
121 |
+
# Apply custom theme
|
122 |
+
set_custom_theme()
|
123 |
+
|
124 |
+
# Existing page element style
|
125 |
page_element = """
|
126 |
<style>
|
127 |
[data-testid="stAppViewContainer"] {
|