Update app.py
Browse files
app.py
CHANGED
@@ -69,6 +69,18 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
|
|
69 |
"""
|
70 |
demo = gr.ChatInterface(
|
71 |
respond,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
css=css, # Pass the custom CSS here
|
73 |
)
|
74 |
|
|
|
69 |
"""
|
70 |
demo = gr.ChatInterface(
|
71 |
respond,
|
72 |
+
additional_inputs=[
|
73 |
+
gr.Textbox(value="You are a virtual Doctor Assistant. Your role is to assist healthcare professionals by providing accurate, evidence-based medical information, offering treatment options, and supporting patient care. Always prioritize patient safety, provide concise answers, and clearly state that your advice does not replace a doctor's judgment. Do not diagnose or prescribe treatments without human oversight.", label="System message", visible=False),
|
74 |
+
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens", visible=False),
|
75 |
+
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature", visible=False),
|
76 |
+
gr.Slider(
|
77 |
+
minimum=0.1,
|
78 |
+
maximum=1.0,
|
79 |
+
value=0.95,
|
80 |
+
step=0.05,
|
81 |
+
label="Top-p (nucleus sampling)",visible=False
|
82 |
+
),
|
83 |
+
],
|
84 |
css=css, # Pass the custom CSS here
|
85 |
)
|
86 |
|