ruslanmv commited on
Commit
92b8807
·
verified ·
1 Parent(s): e3b8c8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,7 +19,7 @@ model = AutoModelForCausalLM.from_pretrained(model_name).to(device)
19
  tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
20
  tokenizer.pad_token = tokenizer.eos_token
21
  @spaces.GPU
22
- def askme(symptoms, question):
23
  sys_message = '''\
24
  You are an AI Medical Assistant trained on a vast dataset of health information. Please be thorough and
25
  provide an informative answer. If you don't know the answer to a specific medical inquiry, advise seeking professional help.
@@ -53,7 +53,7 @@ iface = gr.Interface(
53
  fn=askme,
54
  inputs=["Symptoms", "Question"],
55
  outputs="text",
56
- examples=examples,
57
  title="Medical AI Chatbot",
58
  description="Ask me a medical question!"
59
  )
 
19
  tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
20
  tokenizer.pad_token = tokenizer.eos_token
21
  @spaces.GPU
22
+ def askme(Symptoms, Question):
23
  sys_message = '''\
24
  You are an AI Medical Assistant trained on a vast dataset of health information. Please be thorough and
25
  provide an informative answer. If you don't know the answer to a specific medical inquiry, advise seeking professional help.
 
53
  fn=askme,
54
  inputs=["Symptoms", "Question"],
55
  outputs="text",
56
+ examples = [ {"Symptoms": symptoms, "Question": question}]
57
  title="Medical AI Chatbot",
58
  description="Ask me a medical question!"
59
  )