amitagh commited on
Commit
6d80f21
1 Parent(s): 88ac13c

Update multi-language

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -10,7 +10,7 @@ messages = [
10
  ]
11
  msg_count = 0
12
 
13
- client = Client("https://amitagh-medbot-back.hf.space/--replicas/2odej/", hf_token=hf_key)
14
  def get_llm_rsp(text):
15
  rsp = client.predict(
16
  text, # str in 'Input your question:' Textbox component
@@ -50,7 +50,8 @@ with gr.Blocks() as demo:
50
  gr.Markdown(value="## MedBot")
51
  gr.Markdown(value="Welcome to MedBot – Your Personal Health Assistant. I am here to provide information on various diseases and medical conditions. Please keep in mind that while I can offer valuable insights, my responses are not a substitute for professional medical advice, diagnosis, or treatment.")
52
  gr.Markdown(value="Bot helps with medical information on several common medical disorders, conditions, tests, and treatments, including high-profile diseases such as \
53
- Alzheimer’s disease, cancer, and heart attack. It uses language that laypersons can understand,")
 
54
  gr.Markdown(value="**For accurate and personalized guidance, always consult with a qualified healthcare professional. If you have a specific question about a particular disease or health concern, feel free to ask, and I'll do my best to assist you with reliable and informative responses.\
55
  Your health is important, and I'm here to support you on your journey to better understanding various medical conditions. Let's explore together, keeping your well-being in mind at all times.**")
56
  chatbot = gr.Chatbot(value=[], label="MedBot")
 
10
  ]
11
  msg_count = 0
12
 
13
+ client = Client("https://amitagh-medbot-back.hf.space/--replicas/3rqa8/", hf_token=hf_key)
14
  def get_llm_rsp(text):
15
  rsp = client.predict(
16
  text, # str in 'Input your question:' Textbox component
 
50
  gr.Markdown(value="## MedBot")
51
  gr.Markdown(value="Welcome to MedBot – Your Personal Health Assistant. I am here to provide information on various diseases and medical conditions. Please keep in mind that while I can offer valuable insights, my responses are not a substitute for professional medical advice, diagnosis, or treatment.")
52
  gr.Markdown(value="Bot helps with medical information on several common medical disorders, conditions, tests, and treatments, including high-profile diseases such as \
53
+ Alzheimer’s disease, cancer, and heart attack. It uses language that laypersons can understand.")
54
+ gr.Markdown(value="It supports multiple Indian languages like English, Marathi (मराठी), Hindi (हिन्दी), Bengali (বাংলা), Telugu (తెలుగు),Tamil (தமிழ்), Urdu (اردو), Gujarati (ગુજરાતી), Kannada (ಕನ್ನಡ), Punjabi (ਪੰਜਾਬੀ),Malayalam (മലയാളം), Odia (ଓଡ଼ିଆ),Assamese (অসমীয়া). You will get the response in the language you ask the question.")
55
  gr.Markdown(value="**For accurate and personalized guidance, always consult with a qualified healthcare professional. If you have a specific question about a particular disease or health concern, feel free to ask, and I'll do my best to assist you with reliable and informative responses.\
56
  Your health is important, and I'm here to support you on your journey to better understanding various medical conditions. Let's explore together, keeping your well-being in mind at all times.**")
57
  chatbot = gr.Chatbot(value=[], label="MedBot")