ASR_arena / pages /about.py
chinmayc3's picture
converted app to multipage to improve performance
84a9b26
raw
history blame
1.78 kB
import streamlit as st
from pages.scoreboard import validate_email
from pages.scoreboard import write_email
st.title("About")
st.markdown(
"""
# Ori Speech-To-Text Arena
"""
)
st.markdown(
"""## Arena
"""
)
st.markdown(
"""
* The Arena allows a user to record their audios, in which speech will be recognized by two randomly selected models. After listening to the audio, and evaluating the output from both the models, the user can vote on which transcription they prefer. Due to the risks of human bias and abuse, model names are revealed only after a vote is submitted."""
)
st.markdown(
"## Scoreboard"
)
st.markdown(
""" * The Scoreboard shows the performance of the models in the Arena. The user can see the overall performance of the models, the model with the highest win rate, and the model with the most appearances. The user can also see the win rates of each model, as well as the appearance distribution of each model."""
)
st.markdown(
"## Contact Us"
)
st.markdown(
"To inquire about our speech-to-text models and APIs, you can submit your email using the form below."
)
with st.form("login_form"):
st.subheader("Please Enter you Email")
email = st.text_input("Email")
submit_button = st.form_submit_button("Submit")
if submit_button:
if not email:
st.error("Please fill in all fields")
else:
if not validate_email(email):
st.error("Please enter a valid email address")
else:
st.session_state.logged_in = True
st.session_state.user_email = email
write_email(st.session_state.user_email)
st.success("Thanks for submitting your email, our team will be in touch with you shortly!")