Skip to content

Commit c1c402a

Browse files
committed
fix: gitignore pattern
1 parent c4c83b0 commit c1c402a

File tree

3 files changed

+39
-2
lines changed

3 files changed

+39
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
data/*
22
model/*
3+
tmp/*
34

45
# Byte-compiled / optimized / DLL files
56
__pycache__/

components.py

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,39 @@ def add_section():
5353
st.table(pd.DataFrame(outputs, columns=['decontextualized excerpt']))
5454

5555
with st.expander('text'):
56-
st.markdown('\n\n'.join(outputs))
56+
st.markdown('\n\n'.join(outputs))
57+
58+
59+
def footer_section():
60+
hide_streamlit_style = '''
61+
<style>
62+
#MainMenu {visibility: hidden;}
63+
footer {visibility: hidden;}
64+
</style>
65+
'''
66+
st.markdown(hide_streamlit_style, unsafe_allow_html=True)
67+
68+
footer = '''
69+
---
70+
<style>
71+
button {
72+
border: 4px solid;
73+
border-color: #228b22;
74+
border-radius: 4px;
75+
background-color: #228b22;
76+
color: #fffffd;
77+
font-weight: bold;
78+
padding-left: 5px;
79+
padding-right: 5px;
80+
}
81+
</style>
82+
<center>
83+
<div>
84+
<a href="https://paulbricman.com/contact"><button>send feedback</button></a>
85+
<a href="https://github.com/paulbricman/lexiscore"><button>learn more</button></a>
86+
<a href="https://github.com/sponsors/paulbricman"><button>support me 🤍</button></a>
87+
</div>
88+
</center>
89+
'''
90+
91+
st.markdown(footer, unsafe_allow_html=True)

main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@
1212
})
1313

1414
components.hero_section()
15-
components.add_section()
15+
components.add_section()
16+
components.footer_section()

0 commit comments

Comments
 (0)