CelebChat / utils.py
lhzstar
initial commits
6bc94ac
raw history blame
No virus
544 Bytes
import re
import streamlit as st
you_regex = re.compile(r'\b(you|your)\b', flags=re.IGNORECASE)
he_regex = re.compile(r'\b(he|him|himself)\b', flags=re.IGNORECASE)
his_regex = re.compile(r'\b(his)\b', flags=re.IGNORECASE)
she_regex = re.compile(r'\b(she|herself)\b', flags=re.IGNORECASE)
her_regex = re.compile(r'\b(her)\b', flags=re.IGNORECASE)
def hide_footer():
hide_st_style = """
<style>
footer {visibility: hidden;}
</style>
"""
st.markdown(hide_st_style, unsafe_allow_html=True)