Spaces:
Sleeping
Sleeping
Johnyquest7
commited on
Commit
•
0094ac8
1
Parent(s):
0da2d9b
Update app.py
Browse filesadded examples
app.py
CHANGED
@@ -9,7 +9,7 @@ from threading import Thread
|
|
9 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
10 |
|
11 |
|
12 |
-
TITLE = "<h1><center>Chat with WellnessWhiz
|
13 |
|
14 |
|
15 |
|
@@ -112,7 +112,7 @@ chatbot = gr.Chatbot(height=450)
|
|
112 |
with gr.Blocks(css=CSS) as demo:
|
113 |
gr.HTML(TITLE)
|
114 |
gr.HTML(DESCRIPTION)
|
115 |
-
gr.DuplicateButton(value="Duplicate Space for private use", elem_classes="duplicate-button")
|
116 |
gr.ChatInterface(
|
117 |
fn=stream_chat,
|
118 |
chatbot=chatbot,
|
@@ -143,7 +143,10 @@ with gr.Blocks(css=CSS) as demo:
|
|
143 |
],
|
144 |
examples=[
|
145 |
|
|
|
|
|
146 |
["How do I lose weight?"],
|
|
|
147 |
],
|
148 |
cache_examples=False,
|
149 |
)
|
|
|
9 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
10 |
|
11 |
|
12 |
+
TITLE = "<h1><center>Chat with WellnessWhiz</center></h1>"
|
13 |
|
14 |
|
15 |
|
|
|
112 |
with gr.Blocks(css=CSS) as demo:
|
113 |
gr.HTML(TITLE)
|
114 |
gr.HTML(DESCRIPTION)
|
115 |
+
#gr.DuplicateButton(value="Duplicate Space for private use", elem_classes="duplicate-button")
|
116 |
gr.ChatInterface(
|
117 |
fn=stream_chat,
|
118 |
chatbot=chatbot,
|
|
|
143 |
],
|
144 |
examples=[
|
145 |
|
146 |
+
["My blood sugar is running in the 300s. Can you help me?"],
|
147 |
+
["I have hypothyroidism and is taking levothyroxine 100 mcg. I am feeling fatigued. Whats wrong?"],
|
148 |
["How do I lose weight?"],
|
149 |
+
["Can you generate 1 week 1500 calorie diet plan for me?"],
|
150 |
],
|
151 |
cache_examples=False,
|
152 |
)
|