Skip to content

Commit

Permalink
add web_app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Bethelsis committed Aug 12, 2021
1 parent 0afcceb commit 227a477
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions web_app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import streamlit as st
import awesome_streamlit as ast
import scripts.pages.recorded_audio
import scripts.pages.record_audio
import scripts.pages.home
import scripts.pages.visualizations

# create the pages
PAGES = {
"Home" : scripts.pages.home,
"Visualizations" : scripts.pages.visualizations,
"Choose Audio": scripts.pages.recorded_audio,
"Record your own voice": scripts.pages.record_audio,

}


# render the pages
def main():

st.sidebar.title("Navigation")
selection = st.sidebar.radio("Go to", list(PAGES.keys()))

page = PAGES[selection]
with st.spinner(f"Loading {selection} ..."):
ast.shared.components.write_page(page)
st.sidebar.title("About")
st.sidebar.info(
"""
This app is an end-to-end solution that is capable of transcribing a speech to text in the Amharic language.
"""
)

if __name__ == "__main__":
main()

1 comment on commit 227a477

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CML Report for Amharic Speech To Text Model

CML watermark

Please sign in to comment.