walaa2022 commited on
Commit
fd6d6aa
·
verified ·
1 Parent(s): 6862507

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -9
app.py CHANGED
@@ -763,15 +763,6 @@ def render_ai_financial_advisor():
763
  if st.button(question, key=f"q_{i}"):
764
  user_input = question
765
 
766
- # Test voice directly
767
- if st.button("🔊 Test Voice Generation"):
768
- test_audio = generate_voice_response("This is a test of the ElevenLabs voice generation system.")
769
- if test_audio:
770
- st.audio(test_audio, format='audio/mp3')
771
- st.success("Voice generation is working! If you can't hear anything, check your audio settings.")
772
- else:
773
- st.error("Voice generation failed. Please check the error messages above.")
774
-
775
  # Process user input
776
  if user_input:
777
  # Add user message to chat history
 
763
  if st.button(question, key=f"q_{i}"):
764
  user_input = question
765
 
 
 
 
 
 
 
 
 
 
766
  # Process user input
767
  if user_input:
768
  # Add user message to chat history