MayankGupta06 commited on
Commit
ce46e64
·
verified ·
1 Parent(s): 58cb9c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -551,9 +551,9 @@ if option == "Home":
551
  except sr.RequestError:
552
  st.error("Error in speech recognition service")
553
 
554
- lang = st.selectbox("Select Language", ["English", "Hindi", "Spanish"])
555
- if lang != "English":
556
- user_question = translator.translate(user_question, src="en", dest=lang.lower()).text
557
 
558
  if st.button("Get Recommendation"):
559
  if user_question.strip():
 
551
  except sr.RequestError:
552
  st.error("Error in speech recognition service")
553
 
554
+ # lang = st.selectbox("Select Language", ["English", "Hindi", "Spanish"])
555
+ # if lang != "English":
556
+ # user_question = translator.translate(user_question, src="en", dest=lang.lower()).text
557
 
558
  if st.button("Get Recommendation"):
559
  if user_question.strip():