Spaces:
Runtime error
Runtime error
Update app.py
#3
by
amritdhillon
- opened
app.py
CHANGED
@@ -15,7 +15,7 @@ def respond(
|
|
15 |
temperature,
|
16 |
top_p,
|
17 |
):
|
18 |
-
system_message = "
|
19 |
messages = [{"role": "system", "content": system_message}]
|
20 |
|
21 |
for val in history:
|
@@ -46,7 +46,7 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
|
|
46 |
demo = gr.ChatInterface(
|
47 |
respond,
|
48 |
additional_inputs=[
|
49 |
-
gr.Textbox(value = "
|
50 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
51 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
52 |
gr.Slider(
|
@@ -59,11 +59,11 @@ demo = gr.ChatInterface(
|
|
59 |
],
|
60 |
|
61 |
examples = [
|
62 |
-
["
|
63 |
-
["
|
64 |
-
["How
|
65 |
],
|
66 |
-
title = '
|
67 |
)
|
68 |
|
69 |
|
|
|
15 |
temperature,
|
16 |
top_p,
|
17 |
):
|
18 |
+
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."
|
19 |
messages = [{"role": "system", "content": system_message}]
|
20 |
|
21 |
for val in history:
|
|
|
46 |
demo = gr.ChatInterface(
|
47 |
respond,
|
48 |
additional_inputs=[
|
49 |
+
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"),
|
50 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
51 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
52 |
gr.Slider(
|
|
|
59 |
],
|
60 |
|
61 |
examples = [
|
62 |
+
["What are the primary applications of AI in healthcare?"],
|
63 |
+
["How does AI improve diagnostic accuracy?"],
|
64 |
+
["How can AI help in early disease detection?"]
|
65 |
],
|
66 |
+
title = 'AI in Healthcare'
|
67 |
)
|
68 |
|
69 |
|