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