diff --git a/app/main.py b/app/main.py index 2e5daab..3630c47 100644 --- a/app/main.py +++ b/app/main.py @@ -16,12 +16,11 @@ import utils -MAGE_EMOJI_URL = "https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/240/twitter/259/mage_1f9d9.png" # Set page title and favicon. st.set_page_config( - page_title="Traingenerator", page_icon=MAGE_EMOJI_URL, + page_title="Traingenerator", page_icon='🤖', ) @@ -49,18 +48,37 @@ def add_to_colab(notebook): colab_enabled = False -# Display header. -st.markdown("
", unsafe_allow_html=True) -st.image(MAGE_EMOJI_URL, width=80) -""" -# Code Generator for Machine Learning -[![Star](https://img.shields.io/github/stars/jrieke/traingenerator.svg?logo=github&style=social)](https://gitHub.com/jrieke/traingenerator/stargazers) - [![Follow](https://img.shields.io/twitter/follow/jrieke?style=social)](https://www.twitter.com/jrieke) - [![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee--yellow.svg?logo=buy-me-a-coffee&logoColor=orange&style=social)](https://www.buymeacoffee.com/jrieke) -""" -st.markdown("
", unsafe_allow_html=True) +glowing_text_style = ''' + +''' + +# Display the glowing text using st.markdown +st.markdown(glowing_text_style, unsafe_allow_html=True) +st.markdown(f'

Code Generator for Machine Learning

', unsafe_allow_html=True) +st.image("https://github.com/software-babooi/ideal-potato-oibsip/assets/110555361/990476f8-9c47-4938-9889-87811658df1e",use_column_width=True) """Jumpstart your machine learning code: 1. Specify model in the sidebar *(click on **>** if closed)* @@ -141,7 +159,7 @@ def add_to_colab(notebook): # Display donwload/open buttons. # TODO: Maybe refactor this (with some of the stuff in utils.py) to buttons.py. st.write("") # add vertical space -col1, col2, col3 = st.beta_columns(3) +col1, col2, col3 = st.columns(3) open_colab = col1.button("🚀 Open in Colab") # logic handled further down with col2: utils.download_button(code, "generated-code.py", "🐍 Download (.py)") diff --git a/requirements.txt b/requirements.txt index a780e81..3c4466f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ -Jinja2==2.8 +Jinja2==3.1.2 jupytext==1.7.1 -bokeh==2.2.3 -streamlit==0.72.0 -pandas==1.1.3 -PyGithub==1.54 -python-dotenv==0.15.0 +bokeh==3.3.2 +streamlit==1.22.0 +pandas==1.5.2 +PyGithub==1.59.1 +python-dotenv==1.0.0