refactor: update Streamlit configurations and README
- Modified .streamlit/config.toml to update the theme settings. - Removed download buttons and added Streamlit page configurations in main.py for improved user experience. - Updated README.md to include badges for enhanced project information and visibility.
This commit is contained in:
parent
c24029ca2f
commit
e6e4300c91
|
@ -1,6 +1,4 @@
|
|||
[theme]
|
||||
primaryColor="#d33682"
|
||||
backgroundColor="#002b36"
|
||||
secondaryBackgroundColor="#586e75"
|
||||
textColor="#fafafa"
|
||||
base="dark"
|
||||
primaryColor="purple"
|
||||
font="sans serif"
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
# KeepYourMouthShut
|
||||
|
||||
 -  -  -  -  - 
|
||||
|
|
15
src/main.py
15
src/main.py
|
@ -162,12 +162,21 @@ def gencast(name, desc, topics, ads):
|
|||
output_file = f"{output_dir}{current_date}_{unique_id}.mp3"
|
||||
podcast.export(output_file, format="mp3")
|
||||
|
||||
# Provide Streamlit download button
|
||||
st.download_button("Download Script", script_file)
|
||||
st.download_button("Download Audio", podcast)
|
||||
|
||||
st.set_page_config(
|
||||
page_title="KeepYourMouthShut",
|
||||
page_icon=":speak_no_evil:",
|
||||
layout="centered",
|
||||
initial_sidebar_state="expanded",
|
||||
menu_items={
|
||||
'Get Help': 'https://www.reddit.com/r/KeepYourMouthShut/',
|
||||
'Report a bug': "https://github.com/rajtilakjee/keepyourmouthshut/issues",
|
||||
'About': "https://www.keepyourmouthshut.net/"
|
||||
}
|
||||
)
|
||||
|
||||
st.title("KeepYourMouthShut")
|
||||
st.snow()
|
||||
|
||||
with st.sidebar:
|
||||
openai_api_key = st.text_input("OpenAI API Key", type="password")
|
||||
|
|
Loading…
Reference in New Issue