Update app.py
Browse files
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 |
-
|
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():
|