hschlotter commited on
Commit
f418678
1 Parent(s): 9834239

Upload 7 files

Browse files
Files changed (7) hide show
  1. Dataset.csv +24 -0
  2. Dataset.txt +24 -0
  3. MindfulStory.csv +468 -0
  4. README.txt +13 -0
  5. app.py +83 -0
  6. download.py +139 -0
  7. requirements.txt +3 -0
Dataset.csv ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ title, story, time
2
+ "Feel better physically by Stretch, Calm, Breath","Feel better physically by doing something physical?
3
+
4
+ Anxiety is an involuntary emotional response that occurs when we feel nervous, worried or apprehensive. This anxious feeling often increases when other people or objects bother us.
5
+
6
+ What do you think triggers theStretch, Calm, Breath-control
7
+
8
+ by David Stewart
9
+
10
+ I was in a doctor's waiting room the other day. I was waiting
11
+ for a doctor's appointment, and that waiting room is filled with people with
12
+ complaints ranging from",2022-10-06 09:29:43.345821
13
+ Practicing mindfulness each day Walk Feel,"Practicing mindfulness each day is the first step I recommend to anyone. It’s important to learn to be aware of the present moment and to stay fully present in the moment. But mindfulness requires more than just sitting down and meditating. PracticeWalk Feel Good: Mindful Walking Through Your Day
14
+
15
+ Walking is a great form of exercise for the body and the mind. It is a way to ease your stress as you get in tune with your surroundings. Here are a few guidelines for",2022-10-06 09:29:45.488979
16
+ Meditation can improve health Deep Breaths,"Meditation can improve health, alleviate pain and reduce anxiety and stress.
17
+
18
+
19
+
20
+ The health benefits of meditation include helping with immune system function, the regulation of blood pressure, and pain relief.
21
+
22
+ In my own experiences of meditation, I haveDeep Breaths
23
+
24
+ So you have learned aikido at _____ and _____. You have been at _____ aikido sessions for a while now (months/or years, whatever seems to be relevant). I think you have learned",2022-10-06 09:29:50.767785
Dataset.txt ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ title, story, time
2
+ "Feel better physically by Stretch, Calm, Breath","Feel better physically by doing something physical?
3
+
4
+ Anxiety is an involuntary emotional response that occurs when we feel nervous, worried or apprehensive. This anxious feeling often increases when other people or objects bother us.
5
+
6
+ What do you think triggers theStretch, Calm, Breath-control
7
+
8
+ by David Stewart
9
+
10
+ I was in a doctor's waiting room the other day. I was waiting
11
+ for a doctor's appointment, and that waiting room is filled with people with
12
+ complaints ranging from",2022-10-06 09:29:43.345821
13
+ Practicing mindfulness each day Walk Feel,"Practicing mindfulness each day is the first step I recommend to anyone. It’s important to learn to be aware of the present moment and to stay fully present in the moment. But mindfulness requires more than just sitting down and meditating. PracticeWalk Feel Good: Mindful Walking Through Your Day
14
+
15
+ Walking is a great form of exercise for the body and the mind. It is a way to ease your stress as you get in tune with your surroundings. Here are a few guidelines for",2022-10-06 09:29:45.488979
16
+ Meditation can improve health Deep Breaths,"Meditation can improve health, alleviate pain and reduce anxiety and stress.
17
+
18
+
19
+
20
+ The health benefits of meditation include helping with immune system function, the regulation of blood pressure, and pain relief.
21
+
22
+ In my own experiences of meditation, I haveDeep Breaths
23
+
24
+ So you have learned aikido at _____ and _____. You have been at _____ aikido sessions for a while now (months/or years, whatever seems to be relevant). I think you have learned",2022-10-06 09:29:50.767785
MindfulStory.csv ADDED
@@ -0,0 +1,468 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ title, story, time
2
+ title, story, time
3
+ Music and art make me feel Path to Health and Happiness,"Music and art make me feel as if I’m a complete stranger in my own skin and, as such, an outsider when I go out for dinner. I never know what to expect, and I feel like I’m always inPath to Health and Happiness
4
+
5
+ Menu
6
+
7
+ Category Archives: Stress Management
8
+
9
+ When you take a deep breath, you are using your diaphragm, the muscle between your chest and your lungs. This can help relax the area around your",2022-10-06 09:29:36.039374
10
+ Feel better each day when you awake by Mental Body Scan,"Feel better each day when you awake by your own design. This post has been contributed by a community member. See the about page to learn how to become an Illo contributor.
11
+
12
+ On Dec 1st 2013, Illo announced that it wasMental Body Scan
13
+
14
+ “The body is the house of the mind. The whole of the mind is not in the head. Your entire mind is scattered throughout your nervous system. The mind is your mind, in the head, the brain",2022-10-06 09:29:40.192863
15
+ "Feel better physically by Stretch, Calm, Breath","Feel better physically by doing something physical?
16
+
17
+ Anxiety is an involuntary emotional response that occurs when we feel nervous, worried or apprehensive. This anxious feeling often increases when other people or objects bother us.
18
+
19
+ What do you think triggers theStretch, Calm, Breath-control
20
+
21
+ by David Stewart
22
+
23
+ I was in a doctor's waiting room the other day. I was waiting
24
+ for a doctor's appointment, and that waiting room is filled with people with
25
+ complaints ranging from",2022-10-06 09:29:43.345821
26
+ Practicing mindfulness each day Walk Feel,"Practicing mindfulness each day is the first step I recommend to anyone. It’s important to learn to be aware of the present moment and to stay fully present in the moment. But mindfulness requires more than just sitting down and meditating. PracticeWalk Feel Good: Mindful Walking Through Your Day
27
+
28
+ Walking is a great form of exercise for the body and the mind. It is a way to ease your stress as you get in tune with your surroundings. Here are a few guidelines for",2022-10-06 09:29:45.488979
29
+ Be happier by Brain gamification,"Be happier by getting more done – faster and more reliably
30
+
31
+ You’ve heard it before. When it comes to “getting more stuff done,” one of the biggest factors in our happiness has nothing to do with the quality ofBrain gamification could be the next big thing in healthcare
32
+
33
+
34
+
35
+ By John Krieger
36
+
37
+
38
+
39
+ One of the biggest health trends of the past 20 years has been the recognition that behavior changes -- in both medicine and disease prevention -- are an",2022-10-06 09:29:47.627622
40
+ Meditation can improve health Deep Breaths,"Meditation can improve health, alleviate pain and reduce anxiety and stress.
41
+
42
+
43
+
44
+ The health benefits of meditation include helping with immune system function, the regulation of blood pressure, and pain relief.
45
+
46
+ In my own experiences of meditation, I haveDeep Breaths
47
+
48
+ So you have learned aikido at _____ and _____. You have been at _____ aikido sessions for a while now (months/or years, whatever seems to be relevant). I think you have learned",2022-10-06 09:29:50.767785
49
+ Spending time outdoors Find Joy,"Spending time outdoors? The importance of taking the right precautions
50
+
51
+ If you go to any of the beaches in the UK, you will notice there are some incredibly dangerous things going on. This is mainly because of all the human waste that is discardedFind Joyful Times With These Two Best Selling Kindle Books
52
+
53
+ These two books on Amazon have become best-sellers in both hardcover and Kindle versions. They are part of the author’s two ebook books (all four books) on",2022-10-06 09:29:52.911690
54
+ "Stress is relieved by quieting your mind, getting exercise and time with nature Relieve Pain","Stress is relieved by quieting your mind, getting exercise and time with nature. But it can also be helped by the right kind of technology – if it's smart technology.
55
+
56
+ We're talking about smart technology that helps you to keep stressRelieve Pain and Speed Recovery Using the World’s First Smart Wristband
57
+
58
+ The world’s first smart wristband was designed for people who are struggling with persistent pain. In short, Painpulse allows you to take charge",2022-10-06 09:29:56.051875
59
+ Break the cycle of stress and anxiety Yoga and Meditation,"Break the cycle of stress and anxiety
60
+
61
+ It feels like everything is going wrong with life, and everyone seems to be going mad, but what if the problem wasn’t any of these things in the first place? What if the pressure andYoga and Meditation Teacher Directory
62
+
63
+ Are you looking for a Yoga and Meditation teacher to help you on your path and lead you toward a lifestyle of health and wellness? If that’s your intention, then look no further than the list of",2022-10-06 09:29:58.189896
64
+ Feel calm in stressful situations Neocortex Tools and Techniques,"Feel calm in stressful situations. This one is also known as the 5-Minute Rule of Stress!
65
+
66
+ 1. It’s true!
67
+
68
+ This is a commonly held belief. It’s been proven to be true.Neocortex Tools and Techniques of Social Control
69
+
70
+ Nathaniel Miller, Ph.D., Associate Professor of Psychiatry, University of Pittsburgh School of Medicine
71
+
72
+ Transcription
73
+
74
+ 1 Neocortex Tools and Techniques of Social Control Nathaniel Miller,",2022-10-06 09:30:00.362123
75
+ Deal with work pressure Strengthen Attention,"Deal with work pressure and stress. One way to deal with these issues is to get yourself a good work out routine. The best way to do this is to have a good breakfast. You will get the most out of your workout when you are wellStrengthen Attention
76
+
77
+ When I was little, I was always on the receiving end of a good thrashing, and sometimes I got the occasional whack too. That was my dad punishing me - for anything. Sometimes, he’d",2022-10-06 09:30:03.928323
78
+ Learn to reduce feelings of overwhelmed Easy Daily Activities,"Learn to reduce feelings of overwhelmedness in your personal and professional life, and learn that it is not the end of the world. This course is designed for anyone who is trying to work with emotional states or the effects of loss. This course is aEasy Daily Activities To Do Right Now
79
+
80
+ All you people who want to live a happy and fulfilling life should be doing such activities that would add more depth to our lives. They bring satisfaction, peace, excitement as well as happiness in many aspects and",2022-10-06 09:30:06.084432
81
+ Music and art make me feel Path to Health and Happiness,"Music and art make me feel as if I’m a complete stranger in my own skin and, as such, an outsider when I go out for dinner. I never know what to expect, and I feel like I’m always inPath to Health and Happiness
82
+
83
+ Menu
84
+
85
+ Category Archives: Stress Management
86
+
87
+ When you take a deep breath, you are using your diaphragm, the muscle between your chest and your lungs. This can help relax the area around your",2022-10-06 09:31:48.360596
88
+ Feel better each day when you awake by Mental Body Scan,"Feel better each day when you awake by your own design. This post has been contributed by a community member. See the about page to learn how to become an Illo contributor.
89
+
90
+ On Dec 1st 2013, Illo announced that it wasMental Body Scan
91
+
92
+ “The body is the house of the mind. The whole of the mind is not in the head. Your entire mind is scattered throughout your nervous system. The mind is your mind, in the head, the brain",2022-10-06 09:31:51.514318
93
+ "Feel better physically by Stretch, Calm, Breath","Feel better physically by doing something physical?
94
+
95
+ Anxiety is an involuntary emotional response that occurs when we feel nervous, worried or apprehensive. This anxious feeling often increases when other people or objects bother us.
96
+
97
+ What do you think triggers theStretch, Calm, Breath-control
98
+
99
+ by David Stewart
100
+
101
+ I was in a doctor's waiting room the other day. I was waiting
102
+ for a doctor's appointment, and that waiting room is filled with people with
103
+ complaints ranging from",2022-10-06 09:31:54.652825
104
+ Practicing mindfulness each day Walk Feel,"Practicing mindfulness each day is the first step I recommend to anyone. It’s important to learn to be aware of the present moment and to stay fully present in the moment. But mindfulness requires more than just sitting down and meditating. PracticeWalk Feel Good: Mindful Walking Through Your Day
105
+
106
+ Walking is a great form of exercise for the body and the mind. It is a way to ease your stress as you get in tune with your surroundings. Here are a few guidelines for",2022-10-06 09:31:57.814801
107
+ Be happier by Brain gamification,"Be happier by getting more done – faster and more reliably
108
+
109
+ You’ve heard it before. When it comes to “getting more stuff done,” one of the biggest factors in our happiness has nothing to do with the quality ofBrain gamification could be the next big thing in healthcare
110
+
111
+
112
+
113
+ By John Krieger
114
+
115
+
116
+
117
+ One of the biggest health trends of the past 20 years has been the recognition that behavior changes -- in both medicine and disease prevention -- are an",2022-10-06 09:31:59.957167
118
+ Meditation can improve health Deep Breaths,"Meditation can improve health, alleviate pain and reduce anxiety and stress.
119
+
120
+
121
+
122
+ The health benefits of meditation include helping with immune system function, the regulation of blood pressure, and pain relief.
123
+
124
+ In my own experiences of meditation, I haveDeep Breaths
125
+
126
+ So you have learned aikido at _____ and _____. You have been at _____ aikido sessions for a while now (months/or years, whatever seems to be relevant). I think you have learned",2022-10-06 09:32:02.153196
127
+ Spending time outdoors Find Joy,"Spending time outdoors? The importance of taking the right precautions
128
+
129
+ If you go to any of the beaches in the UK, you will notice there are some incredibly dangerous things going on. This is mainly because of all the human waste that is discardedFind Joyful Times With These Two Best Selling Kindle Books
130
+
131
+ These two books on Amazon have become best-sellers in both hardcover and Kindle versions. They are part of the author’s two ebook books (all four books) on",2022-10-06 09:32:04.293938
132
+ "Stress is relieved by quieting your mind, getting exercise and time with nature Relieve Pain","Stress is relieved by quieting your mind, getting exercise and time with nature. But it can also be helped by the right kind of technology – if it's smart technology.
133
+
134
+ We're talking about smart technology that helps you to keep stressRelieve Pain and Speed Recovery Using the World’s First Smart Wristband
135
+
136
+ The world’s first smart wristband was designed for people who are struggling with persistent pain. In short, Painpulse allows you to take charge",2022-10-06 09:32:07.435435
137
+ Break the cycle of stress and anxiety Yoga and Meditation,"Break the cycle of stress and anxiety
138
+
139
+ It feels like everything is going wrong with life, and everyone seems to be going mad, but what if the problem wasn’t any of these things in the first place? What if the pressure andYoga and Meditation Teacher Directory
140
+
141
+ Are you looking for a Yoga and Meditation teacher to help you on your path and lead you toward a lifestyle of health and wellness? If that’s your intention, then look no further than the list of",2022-10-06 09:32:10.572654
142
+ Feel calm in stressful situations Neocortex Tools and Techniques,"Feel calm in stressful situations. This one is also known as the 5-Minute Rule of Stress!
143
+
144
+ 1. It’s true!
145
+
146
+ This is a commonly held belief. It’s been proven to be true.Neocortex Tools and Techniques of Social Control
147
+
148
+ Nathaniel Miller, Ph.D., Associate Professor of Psychiatry, University of Pittsburgh School of Medicine
149
+
150
+ Transcription
151
+
152
+ 1 Neocortex Tools and Techniques of Social Control Nathaniel Miller,",2022-10-06 09:32:13.753724
153
+ Deal with work pressure Strengthen Attention,"Deal with work pressure and stress. One way to deal with these issues is to get yourself a good work out routine. The best way to do this is to have a good breakfast. You will get the most out of your workout when you are wellStrengthen Attention
154
+
155
+ When I was little, I was always on the receiving end of a good thrashing, and sometimes I got the occasional whack too. That was my dad punishing me - for anything. Sometimes, he’d",2022-10-06 09:32:16.894190
156
+ Learn to reduce feelings of overwhelmed Easy Daily Activities,"Learn to reduce feelings of overwhelmedness in your personal and professional life, and learn that it is not the end of the world. This course is designed for anyone who is trying to work with emotional states or the effects of loss. This course is aEasy Daily Activities To Do Right Now
157
+
158
+ All you people who want to live a happy and fulfilling life should be doing such activities that would add more depth to our lives. They bring satisfaction, peace, excitement as well as happiness in many aspects and",2022-10-06 09:32:19.029572
159
+ Music and art make me feel Path to Health and Happiness,"Music and art make me feel as if I’m a complete stranger in my own skin and, as such, an outsider when I go out for dinner. I never know what to expect, and I feel like I’m always inPath to Health and Happiness
160
+
161
+ Menu
162
+
163
+ Category Archives: Stress Management
164
+
165
+ When you take a deep breath, you are using your diaphragm, the muscle between your chest and your lungs. This can help relax the area around your",2022-10-06 09:35:32.883813
166
+ Feel better each day when you awake by Mental Body Scan,"Feel better each day when you awake by your own design. This post has been contributed by a community member. See the about page to learn how to become an Illo contributor.
167
+
168
+ On Dec 1st 2013, Illo announced that it wasMental Body Scan
169
+
170
+ “The body is the house of the mind. The whole of the mind is not in the head. Your entire mind is scattered throughout your nervous system. The mind is your mind, in the head, the brain",2022-10-06 09:35:35.021659
171
+ "Feel better physically by Stretch, Calm, Breath","Feel better physically by doing something physical?
172
+
173
+ Anxiety is an involuntary emotional response that occurs when we feel nervous, worried or apprehensive. This anxious feeling often increases when other people or objects bother us.
174
+
175
+ What do you think triggers theStretch, Calm, Breath-control
176
+
177
+ by David Stewart
178
+
179
+ I was in a doctor's waiting room the other day. I was waiting
180
+ for a doctor's appointment, and that waiting room is filled with people with
181
+ complaints ranging from",2022-10-06 09:35:37.186645
182
+ Practicing mindfulness each day Walk Feel,"Practicing mindfulness each day is the first step I recommend to anyone. It’s important to learn to be aware of the present moment and to stay fully present in the moment. But mindfulness requires more than just sitting down and meditating. PracticeWalk Feel Good: Mindful Walking Through Your Day
183
+
184
+ Walking is a great form of exercise for the body and the mind. It is a way to ease your stress as you get in tune with your surroundings. Here are a few guidelines for",2022-10-06 09:35:39.344531
185
+ Be happier by Brain gamification,"Be happier by getting more done – faster and more reliably
186
+
187
+ You’ve heard it before. When it comes to “getting more stuff done,” one of the biggest factors in our happiness has nothing to do with the quality ofBrain gamification could be the next big thing in healthcare
188
+
189
+
190
+
191
+ By John Krieger
192
+
193
+
194
+
195
+ One of the biggest health trends of the past 20 years has been the recognition that behavior changes -- in both medicine and disease prevention -- are an",2022-10-06 09:35:41.483646
196
+ Meditation can improve health Deep Breaths,"Meditation can improve health, alleviate pain and reduce anxiety and stress.
197
+
198
+
199
+
200
+ The health benefits of meditation include helping with immune system function, the regulation of blood pressure, and pain relief.
201
+
202
+ In my own experiences of meditation, I haveDeep Breaths
203
+
204
+ So you have learned aikido at _____ and _____. You have been at _____ aikido sessions for a while now (months/or years, whatever seems to be relevant). I think you have learned",2022-10-06 09:35:43.625815
205
+ Spending time outdoors Find Joy,"Spending time outdoors? The importance of taking the right precautions
206
+
207
+ If you go to any of the beaches in the UK, you will notice there are some incredibly dangerous things going on. This is mainly because of all the human waste that is discardedFind Joyful Times With These Two Best Selling Kindle Books
208
+
209
+ These two books on Amazon have become best-sellers in both hardcover and Kindle versions. They are part of the author’s two ebook books (all four books) on",2022-10-06 09:35:45.765702
210
+ "Stress is relieved by quieting your mind, getting exercise and time with nature Relieve Pain","Stress is relieved by quieting your mind, getting exercise and time with nature. But it can also be helped by the right kind of technology – if it's smart technology.
211
+
212
+ We're talking about smart technology that helps you to keep stressRelieve Pain and Speed Recovery Using the World’s First Smart Wristband
213
+
214
+ The world’s first smart wristband was designed for people who are struggling with persistent pain. In short, Painpulse allows you to take charge",2022-10-06 09:35:47.903858
215
+ Break the cycle of stress and anxiety Yoga and Meditation,"Break the cycle of stress and anxiety
216
+
217
+ It feels like everything is going wrong with life, and everyone seems to be going mad, but what if the problem wasn’t any of these things in the first place? What if the pressure andYoga and Meditation Teacher Directory
218
+
219
+ Are you looking for a Yoga and Meditation teacher to help you on your path and lead you toward a lifestyle of health and wellness? If that’s your intention, then look no further than the list of",2022-10-06 09:35:50.040680
220
+ Feel calm in stressful situations Neocortex Tools and Techniques,"Feel calm in stressful situations. This one is also known as the 5-Minute Rule of Stress!
221
+
222
+ 1. It’s true!
223
+
224
+ This is a commonly held belief. It’s been proven to be true.Neocortex Tools and Techniques of Social Control
225
+
226
+ Nathaniel Miller, Ph.D., Associate Professor of Psychiatry, University of Pittsburgh School of Medicine
227
+
228
+ Transcription
229
+
230
+ 1 Neocortex Tools and Techniques of Social Control Nathaniel Miller,",2022-10-06 09:35:52.195808
231
+ Deal with work pressure Strengthen Attention,"Deal with work pressure and stress. One way to deal with these issues is to get yourself a good work out routine. The best way to do this is to have a good breakfast. You will get the most out of your workout when you are wellStrengthen Attention
232
+
233
+ When I was little, I was always on the receiving end of a good thrashing, and sometimes I got the occasional whack too. That was my dad punishing me - for anything. Sometimes, he’d",2022-10-06 09:35:54.334199
234
+ Learn to reduce feelings of overwhelmed Easy Daily Activities,"Learn to reduce feelings of overwhelmedness in your personal and professional life, and learn that it is not the end of the world. This course is designed for anyone who is trying to work with emotional states or the effects of loss. This course is aEasy Daily Activities To Do Right Now
235
+
236
+ All you people who want to live a happy and fulfilling life should be doing such activities that would add more depth to our lives. They bring satisfaction, peace, excitement as well as happiness in many aspects and",2022-10-06 09:35:56.467493
237
+ Music and art make me feel Path to Health and Happiness,"Music and art make me feel as if I’m a complete stranger in my own skin and, as such, an outsider when I go out for dinner. I never know what to expect, and I feel like I’m always inPath to Health and Happiness
238
+
239
+ Menu
240
+
241
+ Category Archives: Stress Management
242
+
243
+ When you take a deep breath, you are using your diaphragm, the muscle between your chest and your lungs. This can help relax the area around your",2022-10-06 09:36:11.945157
244
+ Music and art make me feel Path to Health and Happiness,"Music and art make me feel as if I’m a complete stranger in my own skin and, as such, an outsider when I go out for dinner. I never know what to expect, and I feel like I’m always inPath to Health and Happiness
245
+
246
+ Menu
247
+
248
+ Category Archives: Stress Management
249
+
250
+ When you take a deep breath, you are using your diaphragm, the muscle between your chest and your lungs. This can help relax the area around your",2022-10-06 09:36:15.235323
251
+ Music and art make me feel Path to Health and Happiness,"Music and art make me feel as if I’m a complete stranger in my own skin and, as such, an outsider when I go out for dinner. I never know what to expect, and I feel like I’m always inPath to Health and Happiness
252
+
253
+ Menu
254
+
255
+ Category Archives: Stress Management
256
+
257
+ When you take a deep breath, you are using your diaphragm, the muscle between your chest and your lungs. This can help relax the area around your",2022-10-06 09:36:17.455555
258
+ Path to Health and Happiness Music and art make me feel,"Path to Health and Happiness
259
+
260
+ When you think about the life you have led over these past three-and-a-half years, are there any moments when you felt truly happy, and were also aware of the feelings you experienced?
261
+
262
+ Music and art make me feel. If the music is melancholy, so is my inner core. If the music is joyful, well, good things happen too. The music is of no concern. It has to do with a soul, an emotion.",2022-10-06 09:36:24.539253
263
+ Music and art make me feel Path to Health and Happiness Music and art make me feel,"Music and art make me feel better,
264
+
265
+ I feel more connected to each other.
266
+
267
+ I'm happy because I have people around me,
268
+
269
+ With thoughts and feelings I'm not even aware of.
270
+
271
+ If we let ourselves bePath to Health and Happiness
272
+
273
+ When you think about the life you have led over these past three-and-a-half years, are there any moments when you felt truly happy, and were also aware of the feelings you experienced?
274
+
275
+ Music and art make me feel. If the music is melancholy, so is my inner core. If the music is joyful, well, good things happen too. The music is of no concern. It has to do with a soul, an emotion.",2022-10-06 09:36:29.340403
276
+ Path to Health and Happiness Music and art make me feel Path to Health and Happiness,"Path to Health and Happiness.""
277
+
278
+ In the same year, the United Nations and European Union began work on an ""innovation agenda"" that focuses on ""innovation capital,"" to support the global effort to build sustainable societies. By 2021, theMusic and art make me feel as if I’m a complete stranger in my own skin and, as such, an outsider when I go out for dinner. I never know what to expect, and I feel like I’m always inPath to Health and Happiness
279
+
280
+ Menu
281
+
282
+ Category Archives: Stress Management
283
+
284
+ When you take a deep breath, you are using your diaphragm, the muscle between your chest and your lungs. This can help relax the area around your",2022-10-06 09:36:33.688728
285
+ Feel better each day when you awake by Mental Body Scan,"Feel better each day when you awake by your own design. This post has been contributed by a community member. See the about page to learn how to become an Illo contributor.
286
+
287
+ On Dec 1st 2013, Illo announced that it wasMental Body Scan
288
+
289
+ “The body is the house of the mind. The whole of the mind is not in the head. Your entire mind is scattered throughout your nervous system. The mind is your mind, in the head, the brain",2022-10-06 09:36:39.709322
290
+ Feel better each day when you awake by Mental Body Scan,"Feel better each day when you awake by your own design. This post has been contributed by a community member. See the about page to learn how to become an Illo contributor.
291
+
292
+ On Dec 1st 2013, Illo announced that it wasMental Body Scan
293
+
294
+ “The body is the house of the mind. The whole of the mind is not in the head. Your entire mind is scattered throughout your nervous system. The mind is your mind, in the head, the brain",2022-10-06 09:36:41.987968
295
+ Feel better each day when you awake by Mental Body Scan,"Feel better each day when you awake by your own design. This post has been contributed by a community member. See the about page to learn how to become an Illo contributor.
296
+
297
+ On Dec 1st 2013, Illo announced that it wasMental Body Scan
298
+
299
+ “The body is the house of the mind. The whole of the mind is not in the head. Your entire mind is scattered throughout your nervous system. The mind is your mind, in the head, the brain",2022-10-06 09:36:44.189829
300
+ Mental Body Scan Feel better each day when you awake by,"Mental Body Scan
301
+
302
+ Mental Body Scan is a mental health service in Ontario, Canada, founded in 1999 and based in Toronto, Ontario with an additional office in London, Ontario in 2003 and four staff. MBS operates under the authority ofFeel better each day when you awake by thanking Him for all His mercy and kindness.
303
+
304
+ The best thing you can do is to love your God...
305
+
306
+ It is far better to get along with your Creator than to be hostile toward him.",2022-10-06 09:36:48.514021
307
+ Feel better each day when you awake by Mental Body Scan Feel better each day when you awake by,"Feel better each day when you awake by feeling the warmth of a person who loves you. I also pray that you will receive good news, so you will be motivated to make the best of what you have.
308
+
309
+ To reach this point in yourMental Body Scan
310
+
311
+ Mental Body Scan is a mental health service in Ontario, Canada, founded in 1999 and based in Toronto, Ontario with an additional office in London, Ontario in 2003 and four staff. MBS operates under the authority ofFeel better each day when you awake by thanking Him for all His mercy and kindness.
312
+
313
+ The best thing you can do is to love your God...
314
+
315
+ It is far better to get along with your Creator than to be hostile toward him.",2022-10-06 09:36:54.118104
316
+ Mental Body Scan Feel better each day when you awake by Mental Body Scan,"Mental Body Scan"" and was the subject of this year's American Institute of Behavioral Sciences annual conference in Boston. To discuss it and others like it, I spoke with several experts working in the field—including the authors of a recent paper, ""Feel better each day when you awake by your own design. This post has been contributed by a community member. See the about page to learn how to become an Illo contributor.
317
+
318
+ On Dec 1st 2013, Illo announced that it wasMental Body Scan
319
+
320
+ “The body is the house of the mind. The whole of the mind is not in the head. Your entire mind is scattered throughout your nervous system. The mind is your mind, in the head, the brain",2022-10-06 09:36:58.239270
321
+ "Feel better physically by Stretch, Calm, Breath","Feel better physically by doing something physical?
322
+
323
+ Anxiety is an involuntary emotional response that occurs when we feel nervous, worried or apprehensive. This anxious feeling often increases when other people or objects bother us.
324
+
325
+ What do you think triggers theStretch, Calm, Breath-control
326
+
327
+ by David Stewart
328
+
329
+ I was in a doctor's waiting room the other day. I was waiting
330
+ for a doctor's appointment, and that waiting room is filled with people with
331
+ complaints ranging from",2022-10-06 09:37:06.909166
332
+ "Feel better physically by Stretch, Calm, Breath","Feel better physically by doing something physical?
333
+
334
+ Anxiety is an involuntary emotional response that occurs when we feel nervous, worried or apprehensive. This anxious feeling often increases when other people or objects bother us.
335
+
336
+ What do you think triggers theStretch, Calm, Breath-control
337
+
338
+ by David Stewart
339
+
340
+ I was in a doctor's waiting room the other day. I was waiting
341
+ for a doctor's appointment, and that waiting room is filled with people with
342
+ complaints ranging from",2022-10-06 09:37:09.174730
343
+ "Feel better physically by Stretch, Calm, Breath","Feel better physically by doing something physical?
344
+
345
+ Anxiety is an involuntary emotional response that occurs when we feel nervous, worried or apprehensive. This anxious feeling often increases when other people or objects bother us.
346
+
347
+ What do you think triggers theStretch, Calm, Breath-control
348
+
349
+ by David Stewart
350
+
351
+ I was in a doctor's waiting room the other day. I was waiting
352
+ for a doctor's appointment, and that waiting room is filled with people with
353
+ complaints ranging from",2022-10-06 09:37:12.390278
354
+ Practicing mindfulness each day Walk Feel,"Practicing mindfulness each day is the first step I recommend to anyone. It’s important to learn to be aware of the present moment and to stay fully present in the moment. But mindfulness requires more than just sitting down and meditating. PracticeWalk Feel Good: Mindful Walking Through Your Day
355
+
356
+ Walking is a great form of exercise for the body and the mind. It is a way to ease your stress as you get in tune with your surroundings. Here are a few guidelines for",2022-10-06 09:37:23.950740
357
+ Practicing mindfulness each day Walk Feel,"Practicing mindfulness each day is the first step I recommend to anyone. It’s important to learn to be aware of the present moment and to stay fully present in the moment. But mindfulness requires more than just sitting down and meditating. PracticeWalk Feel Good: Mindful Walking Through Your Day
358
+
359
+ Walking is a great form of exercise for the body and the mind. It is a way to ease your stress as you get in tune with your surroundings. Here are a few guidelines for",2022-10-06 09:37:26.217138
360
+ Be happier by Brain gamification,"Be happier by getting more done – faster and more reliably
361
+
362
+ You’ve heard it before. When it comes to “getting more stuff done,” one of the biggest factors in our happiness has nothing to do with the quality ofBrain gamification could be the next big thing in healthcare
363
+
364
+
365
+
366
+ By John Krieger
367
+
368
+
369
+
370
+ One of the biggest health trends of the past 20 years has been the recognition that behavior changes -- in both medicine and disease prevention -- are an",2022-10-06 09:37:38.889942
371
+ Be happier by Brain gamification,"Be happier by getting more done – faster and more reliably
372
+
373
+ You’ve heard it before. When it comes to “getting more stuff done,” one of the biggest factors in our happiness has nothing to do with the quality ofBrain gamification could be the next big thing in healthcare
374
+
375
+
376
+
377
+ By John Krieger
378
+
379
+
380
+
381
+ One of the biggest health trends of the past 20 years has been the recognition that behavior changes -- in both medicine and disease prevention -- are an",2022-10-06 09:37:42.172674
382
+ Brain gamification Be happier by,"Brain gamification has been around for a while. A few years ago, Google's DeepMind AI used it to help develop a robotic arm capable of making autonomous, complex movements, like opening a door or picking up food. Other companies are following inBe happier by choosing a job more aligned with your values and interests
383
+
384
+ Be happier at work by learning to use yourself for your best benefit
385
+
386
+ When they are employed (for example, when they are paid for their jobs with their wages) do",2022-10-06 09:37:47.383333
387
+ Be happier by Brain gamification Be happier by,"Be happier by making your life easier and more relaxing!"" That was his final message to his mother.
388
+
389
+
390
+ On May 14, 2011, the day before graduation, his mother sent the following message to him: ""On the 14th of May 2011Brain gamification has been around for a while. A few years ago, Google's DeepMind AI used it to help develop a robotic arm capable of making autonomous, complex movements, like opening a door or picking up food. Other companies are following inBe happier by choosing a job more aligned with your values and interests
391
+
392
+ Be happier at work by learning to use yourself for your best benefit
393
+
394
+ When they are employed (for example, when they are paid for their jobs with their wages) do",2022-10-06 09:37:57.493527
395
+ Brain gamification Be happier by Brain gamification,"Brain gamification, for example, is an approach for enhancing the effectiveness of software by integrating it with other activities that users perform regularly, such as for instance social interaction and engagement with information on the internet, in order to reduce mental load and increase theBe happier by getting more done – faster and more reliably
396
+
397
+ You’ve heard it before. When it comes to “getting more stuff done,” one of the biggest factors in our happiness has nothing to do with the quality ofBrain gamification could be the next big thing in healthcare
398
+
399
+
400
+
401
+ By John Krieger
402
+
403
+
404
+
405
+ One of the biggest health trends of the past 20 years has been the recognition that behavior changes -- in both medicine and disease prevention -- are an",2022-10-06 09:38:06.953955
406
+ Music and art make me feel Path to Health and Happiness,"Music and art make me feel as if I’m a complete stranger in my own skin and, as such, an outsider when I go out for dinner. I never know what to expect, and I feel like I’m always inPath to Health and Happiness
407
+
408
+ Menu
409
+
410
+ Category Archives: Stress Management
411
+
412
+ When you take a deep breath, you are using your diaphragm, the muscle between your chest and your lungs. This can help relax the area around your",2022-10-06 09:41:15.065709
413
+ Music and art make me feel Path to Health and Happiness,"Music and art make me feel as if I’m a complete stranger in my own skin and, as such, an outsider when I go out for dinner. I never know what to expect, and I feel like I’m always inPath to Health and Happiness
414
+
415
+ Menu
416
+
417
+ Category Archives: Stress Management
418
+
419
+ When you take a deep breath, you are using your diaphragm, the muscle between your chest and your lungs. This can help relax the area around your",2022-10-06 09:41:17.716174
420
+ Music and art make me feel Path to Health and Happiness,"Music and art make me feel as if I’m a complete stranger in my own skin and, as such, an outsider when I go out for dinner. I never know what to expect, and I feel like I’m always inPath to Health and Happiness
421
+
422
+ Menu
423
+
424
+ Category Archives: Stress Management
425
+
426
+ When you take a deep breath, you are using your diaphragm, the muscle between your chest and your lungs. This can help relax the area around your",2022-10-06 09:41:20.139051
427
+ Path to Health and Happiness Music and art make me feel,"Path to Health and Happiness
428
+
429
+ When you think about the life you have led over these past three-and-a-half years, are there any moments when you felt truly happy, and were also aware of the feelings you experienced?
430
+
431
+ Music and art make me feel. If the music is melancholy, so is my inner core. If the music is joyful, well, good things happen too. The music is of no concern. It has to do with a soul, an emotion.",2022-10-06 09:41:36.256583
432
+ Music and art make me feel Path to Health and Happiness,"Music and art make me feel as if I’m a complete stranger in my own skin and, as such, an outsider when I go out for dinner. I never know what to expect, and I feel like I’m always inPath to Health and Happiness
433
+
434
+ Menu
435
+
436
+ Category Archives: Stress Management
437
+
438
+ When you take a deep breath, you are using your diaphragm, the muscle between your chest and your lungs. This can help relax the area around your",2022-10-06 09:41:43.788437
439
+ art and the future the death of humanity,"art and the future development of the city's urban planning, including the development of the Downtown Plan.
440
+
441
+ The design of the office building is described in two documents. The General Design Handbook (GDH) is the principal architectural design document. Itthe death of humanity.""
442
+
443
+ His voice had been shaking, and for a moment he was silent, listening
444
+ to the sobbing of his wife. Then he rose, went over to them, took one
445
+ of her little hands, kissed it",2022-10-06 09:46:09.434439
446
+ Be happier by Brain gamification,"Be happier by getting more done – faster and more reliably
447
+
448
+ You’ve heard it before. When it comes to “getting more stuff done,” one of the biggest factors in our happiness has nothing to do with the quality ofBrain gamification could be the next big thing in healthcare
449
+
450
+
451
+
452
+ By John Krieger
453
+
454
+
455
+
456
+ One of the biggest health trends of the past 20 years has been the recognition that behavior changes -- in both medicine and disease prevention -- are an",2022-10-06 09:50:33.991041
457
+ Be happier by Brain gamification,"Be happier by getting more done – faster and more reliably
458
+
459
+ You’ve heard it before. When it comes to “getting more stuff done,” one of the biggest factors in our happiness has nothing to do with the quality ofBrain gamification could be the next big thing in healthcare
460
+
461
+
462
+
463
+ By John Krieger
464
+
465
+
466
+
467
+ One of the biggest health trends of the past 20 years has been the recognition that behavior changes -- in both medicine and disease prevention -- are an",2022-10-06 09:50:36.399778
468
+
README.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: 🧠CSV Dataset Analyzer📈Streamlit
3
+ emoji: 📈🧠
4
+ colorFrom: yellow
5
+ colorTo: purple
6
+ sdk: streamlit
7
+ sdk_version: 1.10.0
8
+ app_file: app.py
9
+ pinned: false
10
+ license: mit
11
+ ---
12
+
13
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import pandas as pd
3
+ import traceback
4
+ import sys
5
+
6
+ from st_aggrid import AgGrid
7
+ from st_aggrid.grid_options_builder import GridOptionsBuilder
8
+ from st_aggrid.shared import JsCode
9
+ from download import download_button
10
+ from st_aggrid import GridUpdateMode, DataReturnMode
11
+
12
+ # Page config is set once with icon title and display style. Wide mode since we want screen real estate for wide CSV files
13
+ st.set_page_config(page_icon="📝", page_title="📝CSV Data Analyzer📊", layout="wide")
14
+
15
+ # Style
16
+ def _max_width_():
17
+ max_width_str = f"max-width: 1800px;"
18
+ st.markdown(
19
+ f"""
20
+ <style>
21
+ .reportview-container .main .block-container{{
22
+ {max_width_str}
23
+ }}
24
+ </style>
25
+ """,
26
+ unsafe_allow_html=True,
27
+ )
28
+
29
+ # Title Bar with Images and Icons
30
+ col1, col2, col3 = st.columns([1,6,1])
31
+ with col1:
32
+ st.image("https://cdnb.artstation.com/p/assets/images/images/054/910/875/large/aaron-wacker-cyberpunk-computer-brain-design.jpg?1665656558",width=128,)
33
+ with col2:
34
+ st.title("📝 CSV Data Analyzer 📊")
35
+ with col3:
36
+ st.image("https://cdna.artstation.com/p/assets/images/images/054/910/878/large/aaron-wacker-cyberpunk-computer-devices-iot.jpg?1665656564",width=128,)
37
+
38
+ # Upload
39
+ c29, c30, c31 = st.columns([1, 6, 1])
40
+ with c30:
41
+ uploaded_file = st.file_uploader("", key="1", help="To activate 'wide mode', go to the menu > Settings > turn on 'wide mode'",)
42
+ if uploaded_file is not None:
43
+ file_container = st.expander("Check your uploaded .csv")
44
+ #try:
45
+ shows = pd.read_csv(uploaded_file)
46
+ #except:
47
+ # print(sys.exc_info()[2])
48
+
49
+ uploaded_file.seek(0)
50
+ file_container.write(shows)
51
+ else:
52
+ st.info(f"""⬆️Upload a 📝.CSV file. Examples: [Chatbot](https://huggingface.co/datasets/awacke1/Carddata.csv) [Mindfulness](https://huggingface.co/datasets/awacke1/MindfulStory.csv) [Wikipedia](https://huggingface.co/datasets/awacke1/WikipediaSearch)""")
53
+ st.stop()
54
+
55
+ # DisplayGrid
56
+ gb = GridOptionsBuilder.from_dataframe(shows)
57
+ gb.configure_default_column(enablePivot=True, enableValue=True, enableRowGroup=True)
58
+ gb.configure_selection(selection_mode="multiple", use_checkbox=True)
59
+ gb.configure_side_bar()
60
+ gridOptions = gb.build()
61
+ st.success(f"""💡 Tip! Hold shift key when selecting rows to select multiple rows at once.""")
62
+ response = AgGrid(
63
+ shows,
64
+ gridOptions=gridOptions,
65
+ enable_enterprise_modules=True,
66
+ update_mode=GridUpdateMode.MODEL_CHANGED,
67
+ data_return_mode=DataReturnMode.FILTERED_AND_SORTED,
68
+ fit_columns_on_grid_load=False,
69
+ )
70
+
71
+ # Filters
72
+ df = pd.DataFrame(response["selected_rows"])
73
+ st.subheader("Filtered data will appear below 📊 ")
74
+ st.text("")
75
+ st.table(df)
76
+ st.text("")
77
+
78
+ # Download
79
+ c29, c30, c31 = st.columns([1, 1, 2])
80
+ with c29:
81
+ CSVButton = download_button(df,"Dataset.csv","Download CSV file",)
82
+ with c30:
83
+ CSVButton = download_button(df,"Dataset.txt","Download TXT file",)
download.py ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import pickle
3
+ import pandas as pd
4
+ import json
5
+ import base64
6
+ import uuid
7
+ import re
8
+
9
+ import importlib.util
10
+
11
+
12
+ def import_from_file(module_name: str, filepath: str):
13
+ """
14
+ Imports a module from file.
15
+ Args:
16
+ module_name (str): Assigned to the module's __name__ parameter (does not
17
+ influence how the module is named outside of this function)
18
+ filepath (str): Path to the .py file
19
+ Returns:
20
+ The module
21
+ """
22
+ spec = importlib.util.spec_from_file_location(module_name, filepath)
23
+ module = importlib.util.module_from_spec(spec)
24
+ spec.loader.exec_module(module)
25
+ return module
26
+
27
+
28
+ def notebook_header(text):
29
+ """
30
+ Insert section header into a jinja file, formatted as notebook cell.
31
+ Leave 2 blank lines before the header.
32
+ """
33
+ return f"""# # {text}
34
+ """
35
+
36
+
37
+ def code_header(text):
38
+ """
39
+ Insert section header into a jinja file, formatted as Python comment.
40
+ Leave 2 blank lines before the header.
41
+ """
42
+ seperator_len = (75 - len(text)) / 2
43
+ seperator_len_left = math.floor(seperator_len)
44
+ seperator_len_right = math.ceil(seperator_len)
45
+ return f"# {'-' * seperator_len_left} {text} {'-' * seperator_len_right}"
46
+
47
+
48
+ def to_notebook(code):
49
+ """Converts Python code to Jupyter notebook format."""
50
+ notebook = jupytext.reads(code, fmt="py")
51
+ return jupytext.writes(notebook, fmt="ipynb")
52
+
53
+
54
+ def open_link(url, new_tab=True):
55
+ """Dirty hack to open a new web page with a streamlit button."""
56
+ # From: https://discuss.streamlit.io/t/how-to-link-a-button-to-a-webpage/1661/3
57
+ if new_tab:
58
+ js = f"window.open('{url}')" # New tab or window
59
+ else:
60
+ js = f"window.location.href = '{url}'" # Current tab
61
+ html = '<img src onerror="{}">'.format(js)
62
+ div = Div(text=html)
63
+ st.bokeh_chart(div)
64
+
65
+
66
+ def download_button(object_to_download, download_filename, button_text):
67
+ """
68
+ Generates a link to download the given object_to_download.
69
+ From: https://discuss.streamlit.io/t/a-download-button-with-custom-css/4220
70
+ Params:
71
+ ------
72
+ object_to_download: The object to be downloaded.
73
+ download_filename (str): filename and extension of file. e.g. mydata.csv,
74
+ some_txt_output.txt download_link_text (str): Text to display for download
75
+ link.
76
+ button_text (str): Text to display on download button (e.g. 'click here to download file')
77
+ pickle_it (bool): If True, pickle file.
78
+ Returns:
79
+ -------
80
+ (str): the anchor tag to download object_to_download
81
+ Examples:
82
+ --------
83
+ download_link(your_df, 'YOUR_DF.csv', 'Click to download data!')
84
+ download_link(your_str, 'YOUR_STRING.txt', 'Click to download text!')
85
+ """
86
+
87
+ # if:
88
+ if isinstance(object_to_download, bytes):
89
+ pass
90
+
91
+ elif isinstance(object_to_download, pd.DataFrame):
92
+ object_to_download = object_to_download.to_csv(index=False)
93
+ # Try JSON encode for everything else
94
+ else:
95
+ object_to_download = json.dumps(object_to_download)
96
+
97
+ try:
98
+ # some strings <-> bytes conversions necessary here
99
+ b64 = base64.b64encode(object_to_download.encode()).decode()
100
+ except AttributeError as e:
101
+ b64 = base64.b64encode(object_to_download).decode()
102
+
103
+ button_uuid = str(uuid.uuid4()).replace("-", "")
104
+ button_id = re.sub("\d+", "", button_uuid)
105
+
106
+ custom_css = f"""
107
+ <style>
108
+ #{button_id} {{
109
+ display: inline-flex;
110
+ align-items: center;
111
+ justify-content: center;
112
+ background-color: rgb(255, 255, 255);
113
+ color: rgb(38, 39, 48);
114
+ padding: .25rem .75rem;
115
+ position: relative;
116
+ text-decoration: none;
117
+ border-radius: 4px;
118
+ border-width: 1px;
119
+ border-style: solid;
120
+ border-color: rgb(230, 234, 241);
121
+ border-image: initial;
122
+ }}
123
+ #{button_id}:hover {{
124
+ border-color: rgb(246, 51, 102);
125
+ color: rgb(246, 51, 102);
126
+ }}
127
+ #{button_id}:active {{
128
+ box-shadow: none;
129
+ background-color: rgb(246, 51, 102);
130
+ color: white;
131
+ }}
132
+ </style> """
133
+
134
+ dl_link = (
135
+ custom_css
136
+ + f'<a download="{download_filename}" id="{button_id}" href="data:file/txt;base64,{b64}">{button_text}</a><br><br>'
137
+ )
138
+
139
+ st.markdown(dl_link, unsafe_allow_html=True)
requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ streamlit
2
+ streamlit-aggrid==0.2.2-2
3
+ click==8