Update app.py
Browse files
app.py
CHANGED
@@ -350,7 +350,7 @@
|
|
350 |
|
351 |
import streamlit as st
|
352 |
import speech_recognition as sr
|
353 |
-
from
|
354 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
355 |
import matplotlib.pyplot as plt
|
356 |
import numpy as np
|
@@ -379,7 +379,7 @@ st.write("Empowering healthcare with AI-driven insights and recommendations!")
|
|
379 |
# Sidebar Navigation
|
380 |
st.sidebar.title("π Navigation")
|
381 |
option = st.sidebar.radio("Select an option:", ["Home", "Symptom Checker", "Doctor Connect", "Health Stats"])
|
382 |
-
translator =
|
383 |
|
384 |
if option == "Home":
|
385 |
user_question = st.text_input("Type your symptoms or disease name:")
|
|
|
350 |
|
351 |
import streamlit as st
|
352 |
import speech_recognition as sr
|
353 |
+
from deep_translator import GoogleTranslator
|
354 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
355 |
import matplotlib.pyplot as plt
|
356 |
import numpy as np
|
|
|
379 |
# Sidebar Navigation
|
380 |
st.sidebar.title("π Navigation")
|
381 |
option = st.sidebar.radio("Select an option:", ["Home", "Symptom Checker", "Doctor Connect", "Health Stats"])
|
382 |
+
translator = GoogleTranslator(source='auto', target='en')
|
383 |
|
384 |
if option == "Home":
|
385 |
user_question = st.text_input("Type your symptoms or disease name:")
|