Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tried adding a css file for the web.py #255

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Project_2/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*{
primaryColor: #F63366;
secondaryColor: #FFC107;
textColor: #18191f;
font: "monospace";
}
3 changes: 3 additions & 0 deletions Project_2/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
from SpeechTranslation import translate
from speech import Transcribe

with open("style.css") as f:
st.markdown('<style>{}</style>'.format(f.read()), unsafe_allow_html=True)

option = st.selectbox(
'What would you like to translate?',
('A text', 'An audio file'))
Expand Down
Loading