Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -67,6 +67,21 @@ with open('Mindfulness.txt', 'r') as file:
|
|
67 |
context = file.read()
|
68 |
contextBox = gr.Textbox(lines=3, default=context, label="Story starter")
|
69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
demo = gr.Interface(
|
71 |
calculator,
|
72 |
[
|
@@ -74,6 +89,7 @@ demo = gr.Interface(
|
|
74 |
gr.Radio(["add", "subtract", "multiply", "divide"]),
|
75 |
"text",
|
76 |
contextBox,
|
|
|
77 |
],
|
78 |
"text",
|
79 |
live=True,
|
|
|
67 |
context = file.read()
|
68 |
contextBox = gr.Textbox(lines=3, default=context, label="Story starter")
|
69 |
|
70 |
+
examples = [
|
71 |
+
["Music and art make me feel"],
|
72 |
+
["Feel better each day when you awake by"],
|
73 |
+
["Feel better physically by"],
|
74 |
+
["Practicing mindfulness each day"],
|
75 |
+
["Be happier by"],
|
76 |
+
["Meditation can improve health"],
|
77 |
+
["Spending time outdoors"],
|
78 |
+
["Stress is relieved by quieting your mind, getting exercise and time with nature"],
|
79 |
+
["Break the cycle of stress and anxiety"],
|
80 |
+
["Feel calm in stressful situations"],
|
81 |
+
["Deal with work pressure"],
|
82 |
+
["Learn to reduce feelings of overwhelmed"]
|
83 |
+
]
|
84 |
+
|
85 |
demo = gr.Interface(
|
86 |
calculator,
|
87 |
[
|
|
|
89 |
gr.Radio(["add", "subtract", "multiply", "divide"]),
|
90 |
"text",
|
91 |
contextBox,
|
92 |
+
examples=examples
|
93 |
],
|
94 |
"text",
|
95 |
live=True,
|