Spaces:
Runtime error
Runtime error
remove style
Browse files
app.py
CHANGED
|
@@ -6,10 +6,11 @@ from pyserini.search.lucene import LuceneSearcher
|
|
| 6 |
|
| 7 |
st.set_page_config(page_title="Gaia Search", layout="wide")
|
| 8 |
|
|
|
|
| 9 |
os.makedirs(os.path.join(os.getcwd(), ".streamlit"), exist_ok=True)
|
| 10 |
with open(os.path.join(os.getcwd(), ".streamlit/config.toml"), "w") as file:
|
| 11 |
file.write('[theme]\nbase="light"')
|
| 12 |
-
|
| 13 |
|
| 14 |
st.sidebar.markdown(
|
| 15 |
"""
|
|
@@ -91,35 +92,38 @@ if st.sidebar.button("Search"):
|
|
| 91 |
unsafe_allow_html=True,
|
| 92 |
)
|
| 93 |
components.html(
|
| 94 |
-
|
| 95 |
-
<style>
|
| 96 |
-
#searchresultsarea {
|
| 97 |
-
font-family: 'Arial';
|
| 98 |
-
}
|
| 99 |
-
|
| 100 |
-
#searchresultsnumber {
|
| 101 |
-
font-size: 0.8rem;
|
| 102 |
-
color: gray;
|
| 103 |
-
}
|
| 104 |
-
|
| 105 |
-
.searchresult h2 {
|
| 106 |
-
font-size: 19px;
|
| 107 |
-
line-height: 18px;
|
| 108 |
-
font-weight: normal;
|
| 109 |
-
color: rgb(7, 111, 222);
|
| 110 |
-
margin-bottom: 0px;
|
| 111 |
-
margin-top: 25px;
|
| 112 |
-
}
|
| 113 |
-
|
| 114 |
-
.searchresult a {
|
| 115 |
-
font-size: 12px;
|
| 116 |
-
line-height: 12px;
|
| 117 |
-
color: green;
|
| 118 |
-
margin-bottom: 0px;
|
| 119 |
-
}
|
| 120 |
-
</style>
|
| 121 |
-
"""
|
| 122 |
-
+ rendered_results,
|
| 123 |
height=800,
|
| 124 |
scrolling=True,
|
| 125 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
st.set_page_config(page_title="Gaia Search", layout="wide")
|
| 8 |
|
| 9 |
+
"""
|
| 10 |
os.makedirs(os.path.join(os.getcwd(), ".streamlit"), exist_ok=True)
|
| 11 |
with open(os.path.join(os.getcwd(), ".streamlit/config.toml"), "w") as file:
|
| 12 |
file.write('[theme]\nbase="light"')
|
| 13 |
+
"""
|
| 14 |
|
| 15 |
st.sidebar.markdown(
|
| 16 |
"""
|
|
|
|
| 92 |
unsafe_allow_html=True,
|
| 93 |
)
|
| 94 |
components.html(
|
| 95 |
+
rendered_results,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
height=800,
|
| 97 |
scrolling=True,
|
| 98 |
)
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
"""
|
| 102 |
+
<style>
|
| 103 |
+
#searchresultsarea {
|
| 104 |
+
font-family: 'Arial';
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
#searchresultsnumber {
|
| 108 |
+
font-size: 0.8rem;
|
| 109 |
+
color: gray;
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
.searchresult h2 {
|
| 113 |
+
font-size: 19px;
|
| 114 |
+
line-height: 18px;
|
| 115 |
+
font-weight: normal;
|
| 116 |
+
color: rgb(7, 111, 222);
|
| 117 |
+
margin-bottom: 0px;
|
| 118 |
+
margin-top: 25px;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
.searchresult a {
|
| 122 |
+
font-size: 12px;
|
| 123 |
+
line-height: 12px;
|
| 124 |
+
color: green;
|
| 125 |
+
margin-bottom: 0px;
|
| 126 |
+
}
|
| 127 |
+
</style>
|
| 128 |
+
"""
|
| 129 |
+
# +
|