Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -869,7 +869,7 @@ def main():
|
|
| 869 |
|
| 870 |
# Main navigation
|
| 871 |
tab_main = st.radio("Choose Action:",
|
| 872 |
-
["π€ Voice Input", "
|
| 873 |
horizontal=True)
|
| 874 |
|
| 875 |
if tab_main == "π€ Voice Input":
|
|
@@ -880,15 +880,15 @@ def main():
|
|
| 880 |
st.session_state.voice_transcript = ""
|
| 881 |
|
| 882 |
# Display speech recognition component and capture returned value
|
| 883 |
-
transcript = st.components.v1.html(speech_recognition_html, height=
|
| 884 |
|
| 885 |
# Update session state if there's new data
|
| 886 |
if transcript is not None and transcript != "":
|
| 887 |
st.session_state.voice_transcript = transcript
|
| 888 |
|
| 889 |
# Display the transcript in a Streamlit text area
|
| 890 |
-
st.markdown("### Processed Voice Input:")
|
| 891 |
-
st.text_area("Voice Transcript", st.session_state.voice_transcript, height=100)
|
| 892 |
|
| 893 |
# Model Selection
|
| 894 |
model_choice = st.sidebar.radio(
|
|
|
|
| 869 |
|
| 870 |
# Main navigation
|
| 871 |
tab_main = st.radio("Choose Action:",
|
| 872 |
+
["π€ Voice Input", "πΈ Media Gallery", "π Search ArXiv", "π File Editor"],
|
| 873 |
horizontal=True)
|
| 874 |
|
| 875 |
if tab_main == "π€ Voice Input":
|
|
|
|
| 880 |
st.session_state.voice_transcript = ""
|
| 881 |
|
| 882 |
# Display speech recognition component and capture returned value
|
| 883 |
+
transcript = st.components.v1.html(speech_recognition_html, height=600)
|
| 884 |
|
| 885 |
# Update session state if there's new data
|
| 886 |
if transcript is not None and transcript != "":
|
| 887 |
st.session_state.voice_transcript = transcript
|
| 888 |
|
| 889 |
# Display the transcript in a Streamlit text area
|
| 890 |
+
# st.markdown("### Processed Voice Input:")
|
| 891 |
+
# st.text_area("Voice Transcript", st.session_state.voice_transcript, height=100)
|
| 892 |
|
| 893 |
# Model Selection
|
| 894 |
model_choice = st.sidebar.radio(
|