Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,6 @@ def generate_answer(user_input, system_note, max_tokens, temp):
|
|
53 |
f"- Begin with a brief summary of the identified condition or concern.\n"
|
54 |
f"- Provide detailed reasoning and explanation in bullet points:\n"
|
55 |
f" • Include possible causes, symptoms, and diagnostic considerations.\n"
|
56 |
-
f" • Mention relevant terms or observations from context.\n"
|
57 |
f" • Explain how the context supports the conclusions.\n"
|
58 |
f"- End with a short, clear recommendation (if context permits).\n"
|
59 |
f"- Avoid medical advice unless the context contains it."
|
@@ -73,12 +72,6 @@ demo = gr.Interface(
|
|
73 |
fn=generate_answer,
|
74 |
inputs=[
|
75 |
gr.Textbox(label="Ask Something", placeholder="Describe your symptom or condition..."),
|
76 |
-
gr.Textbox(
|
77 |
-
value="You are a virtual medical assistant using past medical records to respond intelligently.",
|
78 |
-
label="System Role"
|
79 |
-
),
|
80 |
-
gr.Slider(50, 500, value=300, step=10, label="Max Tokens"),
|
81 |
-
gr.Slider(0.0, 1.0, value=0.4, step=0.1, label="Creativity (Temperature)")
|
82 |
],
|
83 |
outputs=gr.Textbox(label="AI Diagnosis"),
|
84 |
title="🩺 Smart Medical Query Assistant",
|
|
|
53 |
f"- Begin with a brief summary of the identified condition or concern.\n"
|
54 |
f"- Provide detailed reasoning and explanation in bullet points:\n"
|
55 |
f" • Include possible causes, symptoms, and diagnostic considerations.\n"
|
|
|
56 |
f" • Explain how the context supports the conclusions.\n"
|
57 |
f"- End with a short, clear recommendation (if context permits).\n"
|
58 |
f"- Avoid medical advice unless the context contains it."
|
|
|
72 |
fn=generate_answer,
|
73 |
inputs=[
|
74 |
gr.Textbox(label="Ask Something", placeholder="Describe your symptom or condition..."),
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
],
|
76 |
outputs=gr.Textbox(label="AI Diagnosis"),
|
77 |
title="🩺 Smart Medical Query Assistant",
|