Spaces:
Runtime error
Runtime error
remove style
Browse files
app.py
CHANGED
|
@@ -6,11 +6,6 @@ from pyserini.search.lucene import LuceneSearcher
|
|
| 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 |
"""
|
|
@@ -78,52 +73,9 @@ if st.sidebar.button("Search"):
|
|
| 78 |
{results_html}
|
| 79 |
</div>
|
| 80 |
"""
|
| 81 |
-
|
| 82 |
-
"""
|
| 83 |
-
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
|
| 84 |
-
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
|
| 85 |
-
""",
|
| 86 |
-
unsafe_allow_html=True,
|
| 87 |
-
)
|
| 88 |
-
st.markdown(
|
| 89 |
-
"""
|
| 90 |
-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
| 91 |
-
""",
|
| 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 |
-
# +
|
|
|
|
| 6 |
|
| 7 |
st.set_page_config(page_title="Gaia Search", layout="wide")
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
st.sidebar.markdown(
|
| 11 |
"""
|
|
|
|
| 73 |
{results_html}
|
| 74 |
</div>
|
| 75 |
"""
|
| 76 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
components.html(
|
| 78 |
rendered_results,
|
| 79 |
height=800,
|
| 80 |
scrolling=True,
|
| 81 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|