Spaces:
Runtime error
Runtime error
style
Browse files
app.py
CHANGED
|
@@ -7,49 +7,52 @@ from pyserini.search.lucene import LuceneSearcher
|
|
| 7 |
|
| 8 |
st.set_page_config(page_title="IMDB Search", layout="wide")
|
| 9 |
|
| 10 |
-
|
| 11 |
st.sidebar.markdown(
|
| 12 |
"""
|
| 13 |
-
<style>
|
| 14 |
-
.aligncenter {
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
}
|
| 19 |
-
</style>
|
| 20 |
-
<p class="aligncenter">IMDB Search</p>
|
| 21 |
-
""",
|
| 22 |
unsafe_allow_html=True,
|
| 23 |
)
|
| 24 |
|
| 25 |
st.sidebar.markdown(
|
| 26 |
"""
|
| 27 |
-
<style>
|
| 28 |
-
.aligncenter {
|
| 29 |
-
|
| 30 |
-
}
|
| 31 |
-
</style>
|
| 32 |
-
""",
|
| 33 |
unsafe_allow_html=True,
|
| 34 |
)
|
| 35 |
|
| 36 |
query = st.sidebar.text_input(label="Search query", value="")
|
| 37 |
|
| 38 |
-
footer = """
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
color:
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
<
|
| 51 |
-
|
|
|
|
|
|
|
|
|
|
| 52 |
"""
|
|
|
|
| 53 |
st.sidebar.markdown(footer, unsafe_allow_html=True)
|
| 54 |
|
| 55 |
|
|
|
|
| 7 |
|
| 8 |
st.set_page_config(page_title="IMDB Search", layout="wide")
|
| 9 |
|
|
|
|
| 10 |
st.sidebar.markdown(
|
| 11 |
"""
|
| 12 |
+
<style>
|
| 13 |
+
.aligncenter {
|
| 14 |
+
text-align: center;
|
| 15 |
+
font-weight: bold;
|
| 16 |
+
font-size: 28px;
|
| 17 |
+
}
|
| 18 |
+
</style>
|
| 19 |
+
<p class="aligncenter">IMDB Search</p>
|
| 20 |
+
""",
|
| 21 |
unsafe_allow_html=True,
|
| 22 |
)
|
| 23 |
|
| 24 |
st.sidebar.markdown(
|
| 25 |
"""
|
| 26 |
+
<style>
|
| 27 |
+
.aligncenter {
|
| 28 |
+
text-align: center;
|
| 29 |
+
}
|
| 30 |
+
</style>
|
| 31 |
+
""",
|
| 32 |
unsafe_allow_html=True,
|
| 33 |
)
|
| 34 |
|
| 35 |
query = st.sidebar.text_input(label="Search query", value="")
|
| 36 |
|
| 37 |
+
footer = """
|
| 38 |
+
<style>
|
| 39 |
+
.footer {
|
| 40 |
+
position: fixed;
|
| 41 |
+
left: 0;
|
| 42 |
+
bottom: 0;
|
| 43 |
+
width: 100%;
|
| 44 |
+
background-color: white;
|
| 45 |
+
color: black;
|
| 46 |
+
text-align: center;
|
| 47 |
+
}
|
| 48 |
+
</style>
|
| 49 |
+
<div class="footer">
|
| 50 |
+
<p>
|
| 51 |
+
Powered by <a href="https://huggingface.co/" >HuggingFace 🤗</a> and <a href="https://github.com/castorini/pyserini" >Pyserini 🦆</a>
|
| 52 |
+
</p>
|
| 53 |
+
</div>
|
| 54 |
"""
|
| 55 |
+
|
| 56 |
st.sidebar.markdown(footer, unsafe_allow_html=True)
|
| 57 |
|
| 58 |
|