Spaces:
Running
Running
Commit
β’
3ba9a9b
1
Parent(s):
fd57dc0
Initial version π
Browse files
app.py
CHANGED
@@ -1,20 +1,14 @@
|
|
1 |
import streamlit as st
|
2 |
-
from pages import search_engine_page, document_page
|
3 |
from st_utils import bm25_search, semantic_search, hf_api, paginator
|
4 |
from huggingface_hub import ModelSearchArguments
|
5 |
import webbrowser
|
6 |
from numerize.numerize import numerize
|
7 |
|
8 |
st.set_page_config(
|
9 |
-
page_title="
|
10 |
page_icon="π",
|
11 |
layout="wide",
|
12 |
initial_sidebar_state="auto",
|
13 |
-
# menu_items={
|
14 |
-
# "Get Help": "https://www.extremelycoolapp.com/help",
|
15 |
-
# "Report a bug": "https://www.extremelycoolapp.com/bug",
|
16 |
-
# "About": "# This is a header. This is an *extremely* cool app!",
|
17 |
-
# },
|
18 |
)
|
19 |
|
20 |
### SIDEBAR
|
@@ -112,34 +106,7 @@ if search_query != "":
|
|
112 |
else:
|
113 |
st.write(f"No Search results, please try again with different keywords")
|
114 |
|
115 |
-
|
116 |
st.markdown(
|
117 |
-
"
|
118 |
-
a:link , a:visited{
|
119 |
-
color: blue;
|
120 |
-
background-color: transparent;
|
121 |
-
text-decoration: underline;
|
122 |
-
}
|
123 |
-
|
124 |
-
a:hover, a:active {
|
125 |
-
color: red;
|
126 |
-
background-color: transparent;
|
127 |
-
text-decoration: underline;
|
128 |
-
}
|
129 |
-
|
130 |
-
.footer {
|
131 |
-
# position: fixed;
|
132 |
-
left: 0;
|
133 |
-
bottom: 0;
|
134 |
-
width: 100%;
|
135 |
-
background-color: white;
|
136 |
-
color: black;
|
137 |
-
text-align: center;
|
138 |
-
}
|
139 |
-
</style>
|
140 |
-
<div class="footer">
|
141 |
-
<p>Made with β€οΈ by <b>Nouamane Tazi</b></p>
|
142 |
-
</div>
|
143 |
-
""",
|
144 |
unsafe_allow_html=True,
|
145 |
-
)
|
|
|
1 |
import streamlit as st
|
|
|
2 |
from st_utils import bm25_search, semantic_search, hf_api, paginator
|
3 |
from huggingface_hub import ModelSearchArguments
|
4 |
import webbrowser
|
5 |
from numerize.numerize import numerize
|
6 |
|
7 |
st.set_page_config(
|
8 |
+
page_title="HF Search Engine",
|
9 |
page_icon="π",
|
10 |
layout="wide",
|
11 |
initial_sidebar_state="auto",
|
|
|
|
|
|
|
|
|
|
|
12 |
)
|
13 |
|
14 |
### SIDEBAR
|
|
|
106 |
else:
|
107 |
st.write(f"No Search results, please try again with different keywords")
|
108 |
|
|
|
109 |
st.markdown(
|
110 |
+
"<h6 style='text-align: center; color: #808080;'>Made with β€οΈ By <a href='https://github.com/NouamaneTazi'>Nouamane</a> - Checkout complete project <a href='https://github.com/NouamaneTazi/hf_search'>here</a></h6>",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
unsafe_allow_html=True,
|
112 |
+
)
|