awacke1 commited on
Commit
00a95fe
Β·
verified Β·
1 Parent(s): 34c21dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -869,7 +869,7 @@ def main():
869
 
870
  # Main navigation
871
  tab_main = st.radio("Choose Action:",
872
- ["🎀 Voice Input", "πŸ’¬ Chat", "πŸ“Έ Media Gallery", "πŸ” Search ArXiv", "πŸ“ File Editor"],
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=800)
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(