MayankGupta06 commited on
Commit
08f9319
Β·
verified Β·
1 Parent(s): 5d0d534

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -350,7 +350,7 @@
350
 
351
  import streamlit as st
352
  import speech_recognition as sr
353
- from googletrans import Translator
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 = 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:")