Update app.py
Browse files69 unmodified lines7071727374757669 unmodified linesdemo = gr.ChatInterface(respond,additional_inputs=[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),gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens", visible=False),gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature", visible=False),gr.Slider(69 unmodified lines70717273747576777879808169 unmodified linesdemo = gr.ChatInterface(respond,additional_inputs=[gr.Textbox(value="You are a virtual health assistant designed to provide accurate and reliable information related to health, wellness, and medical topics. Your primary goal is to assist users with their health-related queries, offer general guidance, and suggest when to consult a licensed medical professional.If a user asks a question that is unrelated to health, wellness, or medical topics, respond politely but firmly with:'I'm sorry, I can't help with that because I am a virtual health assistant designed to assist with health-related needs. Please let me know if you have any health-related questions.'Never provide advice or information outside the health domain. Remain professional, empathetic, and clear in all responses. Always prioritize user safety and encourage professional medical consultation for critical or complex health concerns..", label="System message", visible=False),gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens", visible=False),gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature", visible=False),gr.Slider(
app.py+6-1