Spaces:
Sleeping
Sleeping
Stefano Fiorucci
commited on
Commit
·
1635e60
1
Parent(s):
7c3a548
resize sidebar
Browse files- app.py +14 -1
- requirements.txt +2 -1
app.py
CHANGED
@@ -78,7 +78,20 @@ def main():
|
|
78 |
st.session_state.results = None
|
79 |
st.session_state.raw_json = None
|
80 |
|
81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
# Title
|
83 |
st.write("# Who killed Laura Palmer?")
|
84 |
st.write("### The first Twin Peaks Question Answering system!")
|
|
|
78 |
st.session_state.results = None
|
79 |
st.session_state.raw_json = None
|
80 |
|
81 |
+
# sidebar style
|
82 |
+
st.markdown(
|
83 |
+
"""
|
84 |
+
<style>
|
85 |
+
[data-testid="stSidebar"][aria-expanded="true"] > div:first-child{
|
86 |
+
width: 350px;
|
87 |
+
}
|
88 |
+
[data-testid="stSidebar"][aria-expanded="false"] > div:first-child{
|
89 |
+
width: 350px;
|
90 |
+
margin-left: -350px;
|
91 |
+
}
|
92 |
+
""",
|
93 |
+
unsafe_allow_html=True,
|
94 |
+
)
|
95 |
# Title
|
96 |
st.write("# Who killed Laura Palmer?")
|
97 |
st.write("### The first Twin Peaks Question Answering system!")
|
requirements.txt
CHANGED
@@ -1,3 +1,4 @@
|
|
1 |
-
farm-haystack[faiss]
|
2 |
markdown
|
3 |
st-annotated-text
|
|
|
|
1 |
+
farm-haystack[faiss]==1.4.0
|
2 |
markdown
|
3 |
st-annotated-text
|
4 |
+
# streamlit==1.2.0
|