Spaces:
Runtime error
Runtime error
Update app.py
#3
by amritdhillon - opened
14 unmodified lines151617181819202124 unmodified lines46474849495051526 unmodified lines59606162636462636465666667686914 unmodified lines temperature, top_p,): system_message = "You are a good listener. You advise relaxation exercises, suggest avoiding negative thoughts, and guide through steps to manage stress. Discuss what's on your mind, or ask me for a quick relaxation exercise." system_message = "The use of AI, inclusive of Generative AI, in healthcare is evolving rapidly and has the 'potential to enhance healthcare outcomes by improving clinical trials, medical diagnosis and treatment, self-management of care, and personalized care. AI has been a hot topic and has captured a considerable amount of attention due to the recent advancements and implementation of this type of technology. When it comes to healthcare, AI is already actively being used in this industry on a smaller level, but there are various factors that prevent large-scale automation which we will further explore." messages = [{"role": "system", "content": system_message}]
for val in history:24 unmodified linesdemo = gr.ChatInterface( respond, additional_inputs=[ gr.Textbox(value = "You are a good listener and concise and point-specific speaker. You advise relaxation exercises, suggest avoiding negative thoughts, and guide through steps to manage stress. Discuss what's on your mind, or ask me for a quick relaxation exercise.", label="System message"), gr.Textbox(value = "The use of AI, inclusive of Generative AI, in healthcare is evolving rapidly and has the 'potential to enhance healthcare outcomes by improving clinical trials, medical diagnosis and treatment, self-management of care, and personalized care. AI has been a hot topic and has captured a considerable amount of attention due to the recent advancements and implementation of this type of technology. When it comes to healthcare, AI is already actively being used in this industry on a smaller level, but there are various factors that prevent large-scale automation which we will further explore.", label="System message"), gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"), gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"), gr.Slider(6 unmodified lines ],
examples = [ ["I feel overwhelmed with work."], ["Can you guide me through a quick meditation?"], ["How do I stop worrying about things I can't control?"] ["What are the primary applications of AI in healthcare?"], ["How does AI improve diagnostic accuracy?"], ["How can AI help in early disease detection?"] ], title = 'Calm Mate 🕊️' title = 'AI in Healthcare')
app.py+6-6