From 3853594aa2173438b1f8326171adcc10816c0ca5 Mon Sep 17 00:00:00 2001 From: ayoni02 <105247084+ayoni02@users.noreply.github.com> Date: Mon, 30 Oct 2023 21:14:21 +0100 Subject: [PATCH] Tried adding a css file for the web.py --- Project_2/style.css | 6 ++++++ Project_2/web.py | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 Project_2/style.css diff --git a/Project_2/style.css b/Project_2/style.css new file mode 100644 index 00000000..9d2657f6 --- /dev/null +++ b/Project_2/style.css @@ -0,0 +1,6 @@ +*{ + primaryColor: #F63366; + secondaryColor: #FFC107; + textColor: #18191f; + font: "monospace"; +} diff --git a/Project_2/web.py b/Project_2/web.py index 244b5b7a..4180cc5e 100644 --- a/Project_2/web.py +++ b/Project_2/web.py @@ -2,6 +2,9 @@ from SpeechTranslation import translate from speech import Transcribe +with open("style.css") as f: + st.markdown(''.format(f.read()), unsafe_allow_html=True) + option = st.selectbox( 'What would you like to translate?', ('A text', 'An audio file'))