UMESH266 commited on
Commit
af0c0e2
1 Parent(s): 98465a3

Adding files

Browse files
Files changed (40) hide show
  1. .gitignore +4 -0
  2. README.md +2 -11
  3. artifacts/Audio.mp3 +0 -0
  4. artifacts/Audio_copy.mp3 +0 -0
  5. artifacts/Disease_symptom_and_patient_profile_dataset.csv +350 -0
  6. artifacts/Docmate.ipynb +790 -0
  7. artifacts/Logit_model.pkl +3 -0
  8. artifacts/response.txt +5 -0
  9. avatar.py +144 -0
  10. logs/10_28_2024_08_58_32.log +805 -0
  11. logs/10_29_2024_17_02_09.log +68 -0
  12. logs/10_29_2024_19_35_21.log +54 -0
  13. logs/10_29_2024_21_35_54.log +44 -0
  14. requirements.txt +17 -0
  15. src/__init__.py +0 -0
  16. src/__pycache__/__init__.cpython-311.pyc +0 -0
  17. src/components/__init__.py +0 -0
  18. src/components/__pycache__/__init__.cpython-311.pyc +0 -0
  19. src/components/__pycache__/avatarsys.cpython-311.pyc +0 -0
  20. src/components/__pycache__/docchat.cpython-311.pyc +0 -0
  21. src/components/__pycache__/emotionanalyz.cpython-311.pyc +0 -0
  22. src/components/__pycache__/textprocess.cpython-311.pyc +0 -0
  23. src/components/__pycache__/voicesynth.cpython-311.pyc +0 -0
  24. src/components/avatarsys.py +45 -0
  25. src/components/docchat.py +32 -0
  26. src/components/emotionanalyz.py +32 -0
  27. src/components/textprocess.py +32 -0
  28. src/components/voicesynth.py +19 -0
  29. src/exception/__init__.py +0 -0
  30. src/exception/__pycache__/__init__.cpython-311.pyc +0 -0
  31. src/exception/__pycache__/exception.cpython-311.pyc +0 -0
  32. src/exception/exception.py +25 -0
  33. src/logger/__init__.py +0 -0
  34. src/logger/__pycache__/__init__.cpython-311.pyc +0 -0
  35. src/logger/__pycache__/logger.cpython-311.pyc +0 -0
  36. src/logger/logger.py +19 -0
  37. src/utils/__init__.py +0 -0
  38. src/utils/__pycache__/__init__.cpython-311.pyc +0 -0
  39. src/utils/__pycache__/accessory.cpython-311.pyc +0 -0
  40. src/utils/accessory.py +87 -0
.gitignore ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ chatbotenv
2
+ Experiment
3
+ avatar.ipynb
4
+ .env
README.md CHANGED
@@ -1,12 +1,3 @@
1
- ---
2
- title: Chatbot
3
- emoji: 🏆
4
- colorFrom: yellow
5
- colorTo: green
6
- sdk: streamlit
7
- sdk_version: 1.39.0
8
- app_file: app.py
9
- pinned: false
10
- ---
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
+ This repository contains the code of a simple chatbot. Use your HuggingFace Access token to enjoy the chatbot interaction.
 
 
 
 
 
 
 
 
 
2
 
3
+ Please clone the repository locally on your PC.
artifacts/Audio.mp3 ADDED
Binary file (164 kB). View file
 
artifacts/Audio_copy.mp3 ADDED
Binary file (55.7 kB). View file
 
artifacts/Disease_symptom_and_patient_profile_dataset.csv ADDED
@@ -0,0 +1,350 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Disease,Fever,Cough,Fatigue,Difficulty Breathing,Age,Gender,Blood Pressure,Cholesterol Level,Outcome Variable
2
+ Influenza,Yes,No,Yes,Yes,19,Female,Low,Normal,Positive
3
+ Common Cold,No,Yes,Yes,No,25,Female,Normal,Normal,Negative
4
+ Eczema,No,Yes,Yes,No,25,Female,Normal,Normal,Negative
5
+ Asthma,Yes,Yes,No,Yes,25,Male,Normal,Normal,Positive
6
+ Asthma,Yes,Yes,No,Yes,25,Male,Normal,Normal,Positive
7
+ Eczema,Yes,No,No,No,25,Female,Normal,Normal,Positive
8
+ Influenza,Yes,Yes,Yes,Yes,25,Female,Normal,Normal,Positive
9
+ Influenza,Yes,Yes,Yes,Yes,25,Female,Normal,Normal,Positive
10
+ Hyperthyroidism,No,Yes,No,No,28,Female,Normal,Normal,Negative
11
+ Hyperthyroidism,No,Yes,No,No,28,Female,Normal,Normal,Negative
12
+ Asthma,Yes,No,No,Yes,28,Male,High,Normal,Positive
13
+ Allergic Rhinitis,No,Yes,Yes,No,29,Female,Normal,Low,Negative
14
+ Anxiety Disorders,No,Yes,No,No,29,Female,Normal,High,Negative
15
+ Common Cold,No,No,No,No,29,Female,Low,Normal,Negative
16
+ Diabetes,No,No,No,No,29,Male,Low,Normal,Negative
17
+ Gastroenteritis,No,Yes,No,No,29,Female,Normal,Normal,Negative
18
+ Pancreatitis,Yes,No,No,No,29,Female,High,Normal,Negative
19
+ Rheumatoid Arthritis,No,Yes,Yes,Yes,29,Female,High,High,Negative
20
+ Depression,Yes,Yes,Yes,Yes,29,Male,High,Normal,Positive
21
+ Liver Cancer,Yes,Yes,Yes,Yes,29,Female,Normal,Normal,Positive
22
+ Stroke,Yes,Yes,Yes,Yes,29,Female,Normal,Normal,Positive
23
+ Urinary Tract Infection,Yes,Yes,Yes,No,29,Male,High,High,Positive
24
+ Dengue Fever,Yes,No,Yes,No,30,Female,Normal,Normal,Negative
25
+ Dengue Fever,Yes,No,Yes,No,30,Female,Normal,Normal,Negative
26
+ Eczema,No,Yes,Yes,No,30,Male,High,High,Negative
27
+ Gastroenteritis,Yes,Yes,Yes,No,30,Male,High,High,Negative
28
+ Hepatitis,Yes,Yes,Yes,Yes,30,Male,High,Normal,Negative
29
+ Kidney Cancer,No,No,Yes,No,30,Male,Normal,Normal,Negative
30
+ Migraine,Yes,No,No,No,30,Female,Normal,Normal,Negative
31
+ Migraine,No,Yes,Yes,No,30,Female,Normal,Normal,Negative
32
+ Muscular Dystrophy,No,No,Yes,No,30,Male,High,High,Negative
33
+ Sinusitis,No,Yes,Yes,No,30,Male,Normal,Normal,Negative
34
+ Ulcerative Colitis,Yes,Yes,No,No,30,Female,Normal,Normal,Negative
35
+ Ulcerative Colitis,No,Yes,Yes,No,30,Female,Normal,Normal,Negative
36
+ Asthma,Yes,Yes,No,Yes,30,Female,Normal,Normal,Positive
37
+ Asthma,Yes,Yes,No,Yes,30,Female,Normal,Normal,Positive
38
+ Asthma,Yes,Yes,Yes,Yes,30,Female,Normal,Normal,Positive
39
+ Bipolar Disorder,No,No,Yes,No,30,Female,High,High,Positive
40
+ Bronchitis,Yes,Yes,No,Yes,30,Female,Low,Normal,Positive
41
+ Bronchitis,Yes,Yes,Yes,Yes,30,Male,High,High,Positive
42
+ Bronchitis,Yes,Yes,Yes,Yes,30,Male,High,High,Positive
43
+ Cerebral Palsy,No,No,Yes,Yes,30,Female,Normal,Normal,Positive
44
+ Colorectal Cancer,No,No,Yes,No,30,Female,Normal,High,Positive
45
+ Eczema,Yes,No,No,No,30,Male,High,High,Positive
46
+ Hypertensive Heart Disease,No,No,Yes,No,30,Female,High,High,Positive
47
+ Influenza,Yes,Yes,Yes,No,30,Male,High,Normal,Positive
48
+ Influenza,Yes,Yes,Yes,Yes,30,Female,Normal,Normal,Positive
49
+ Multiple Sclerosis,No,No,Yes,No,30,Female,High,High,Positive
50
+ Myocardial Infarction (Heart...,Yes,Yes,Yes,Yes,30,Female,High,High,Positive
51
+ Urinary Tract Infection (UTI),Yes,No,No,No,30,Female,Normal,Normal,Positive
52
+ Asthma,No,No,No,Yes,31,Male,Normal,Low,Negative
53
+ Osteoporosis,No,No,No,Yes,31,Male,Low,Normal,Negative
54
+ Common Cold,Yes,No,Yes,Yes,31,Male,High,High,Positive
55
+ Migraine,Yes,No,No,No,31,Female,Normal,Normal,Positive
56
+ Pneumonia,Yes,No,Yes,Yes,32,Female,High,Normal,Positive
57
+ Allergic Rhinitis,No,No,Yes,No,35,Female,Normal,Low,Negative
58
+ Asthma,No,Yes,Yes,Yes,35,Female,Normal,High,Negative
59
+ Asthma,Yes,Yes,Yes,Yes,35,Female,Normal,Normal,Negative
60
+ Asthma,No,Yes,Yes,Yes,35,Female,High,Normal,Negative
61
+ Asthma,No,Yes,Yes,Yes,35,Female,High,Normal,Negative
62
+ Atherosclerosis,No,No,Yes,No,35,Male,Normal,Normal,Negative
63
+ Chronic Obstructive Pulmonary...,Yes,Yes,Yes,Yes,35,Male,Normal,Normal,Negative
64
+ Common Cold,Yes,Yes,Yes,No,35,Male,High,Normal,Negative
65
+ Eczema,No,Yes,No,No,35,Male,High,Normal,Negative
66
+ Epilepsy,No,No,Yes,No,35,Male,High,High,Negative
67
+ Hypertension,Yes,Yes,Yes,No,35,Female,High,Normal,Negative
68
+ Hyperthyroidism,Yes,Yes,Yes,No,35,Female,Normal,Normal,Negative
69
+ Obsessive-Compulsive Disorde...,No,No,Yes,No,35,Male,Normal,Normal,Negative
70
+ Pneumonia,Yes,Yes,Yes,Yes,35,Female,Normal,Normal,Negative
71
+ Pneumonia,Yes,Yes,Yes,Yes,35,Female,Normal,Normal,Negative
72
+ Psoriasis,Yes,No,No,No,35,Female,Normal,Low,Negative
73
+ Psoriasis,No,Yes,Yes,No,35,Female,Normal,Low,Negative
74
+ Rubella,Yes,No,Yes,No,35,Female,High,Normal,Negative
75
+ Rubella,Yes,No,Yes,No,35,Female,High,Normal,Negative
76
+ Urinary Tract Infection (UTI),No,Yes,Yes,No,35,Male,High,High,Negative
77
+ Asthma,Yes,Yes,No,Yes,35,Male,Normal,Normal,Positive
78
+ Asthma,Yes,Yes,No,Yes,35,Male,Normal,Normal,Positive
79
+ Cirrhosis,No,No,Yes,No,35,Female,Normal,High,Positive
80
+ Conjunctivitis (Pink Eye),No,Yes,No,No,35,Female,High,High,Positive
81
+ Depression,No,No,Yes,No,35,Female,Normal,High,Positive
82
+ Gastroenteritis,Yes,No,Yes,Yes,35,Male,Low,High,Positive
83
+ Hyperthyroidism,Yes,Yes,Yes,No,35,Male,High,High,Positive
84
+ Hyperthyroidism,Yes,Yes,Yes,No,35,Male,High,High,Positive
85
+ Kidney Cancer,No,No,Yes,No,35,Male,High,High,Positive
86
+ Liver Cancer,No,No,Yes,No,35,Female,High,High,Positive
87
+ Liver Disease,No,No,Yes,No,35,Male,High,High,Positive
88
+ Malaria,Yes,No,No,No,35,Male,High,High,Positive
89
+ Malaria,Yes,No,No,No,35,Male,High,High,Positive
90
+ Migraine,No,Yes,Yes,No,35,Male,High,High,Positive
91
+ Migraine,Yes,No,No,No,35,Male,High,High,Positive
92
+ Pancreatitis,No,No,Yes,No,35,Male,Normal,High,Positive
93
+ Rheumatoid Arthritis,Yes,Yes,Yes,No,35,Male,Normal,Low,Positive
94
+ Rheumatoid Arthritis,No,No,Yes,No,35,Female,Normal,Low,Positive
95
+ Spina Bifida,No,No,Yes,No,35,Female,Normal,Normal,Positive
96
+ Ulcerative Colitis,No,No,Yes,No,35,Male,High,High,Positive
97
+ Ulcerative Colitis,Yes,No,No,No,35,Male,High,High,Positive
98
+ Urinary Tract Infection,Yes,No,Yes,No,35,Female,Normal,High,Positive
99
+ Allergic Rhinitis,No,Yes,No,No,38,Female,Low,Normal,Negative
100
+ Depression,No,No,No,No,38,Female,Normal,High,Negative
101
+ Gastroenteritis,No,No,No,No,38,Male,Normal,Low,Negative
102
+ Influenza,No,No,No,No,38,Male,Normal,Normal,Negative
103
+ Kidney Disease,No,No,Yes,No,38,Female,Low,Normal,Negative
104
+ Liver Cancer,Yes,Yes,No,No,38,Female,High,Normal,Negative
105
+ Liver Disease,No,Yes,No,Yes,38,Male,Low,Normal,Negative
106
+ Osteoporosis,No,Yes,No,No,38,Female,Normal,High,Negative
107
+ Stroke,Yes,Yes,No,No,38,Female,High,Normal,Negative
108
+ Anxiety Disorders,Yes,No,Yes,Yes,38,Male,High,High,Positive
109
+ Diabetes,Yes,No,Yes,Yes,38,Male,High,Low,Positive
110
+ Migraine,Yes,Yes,No,No,38,Male,High,High,Positive
111
+ Osteoarthritis,Yes,Yes,Yes,No,38,Male,High,High,Positive
112
+ Pneumonia,Yes,Yes,Yes,Yes,38,Male,Normal,Normal,Positive
113
+ Klinefelter Syndrome,No,No,Yes,No,39,Female,Normal,Normal,Positive
114
+ Acne,No,No,Yes,No,40,Male,Normal,Normal,Negative
115
+ Brain Tumor,No,No,Yes,No,40,Male,Normal,Normal,Negative
116
+ Bronchitis,No,Yes,No,Yes,40,Female,Normal,Normal,Negative
117
+ Cystic Fibrosis,No,No,Yes,Yes,40,Male,High,High,Negative
118
+ Diabetes,Yes,No,No,No,40,Female,High,High,Negative
119
+ Glaucoma,No,No,Yes,No,40,Male,High,Normal,Negative
120
+ Osteoarthritis,No,No,Yes,No,40,Male,High,Normal,Negative
121
+ Rabies,Yes,Yes,No,No,40,Female,High,Normal,Negative
122
+ Rabies,Yes,Yes,No,No,40,Female,High,Normal,Negative
123
+ Asthma,Yes,No,Yes,No,40,Male,Low,Normal,Positive
124
+ Asthma,Yes,Yes,No,Yes,40,Female,Normal,Normal,Positive
125
+ Asthma,Yes,Yes,No,Yes,40,Female,Normal,Normal,Positive
126
+ Asthma,No,No,Yes,Yes,40,Male,High,High,Positive
127
+ Asthma,Yes,No,Yes,Yes,40,Male,Normal,High,Positive
128
+ Asthma,Yes,No,Yes,Yes,40,Male,Normal,High,Positive
129
+ Chickenpox,No,Yes,No,No,40,Male,Normal,High,Positive
130
+ Chickenpox,No,Yes,No,No,40,Male,Normal,High,Positive
131
+ Coronary Artery Disease,No,No,Yes,No,40,Female,High,High,Positive
132
+ "Eating Disorders (Anorexia,...",No,No,Yes,No,40,Female,High,High,Positive
133
+ Fibromyalgia,No,No,Yes,No,40,Female,High,High,Positive
134
+ Gastroenteritis,Yes,Yes,Yes,No,40,Male,High,High,Positive
135
+ Hemophilia,No,No,Yes,No,40,Female,Normal,Normal,Positive
136
+ Hyperthyroidism,No,No,Yes,No,40,Male,High,High,Positive
137
+ Hypoglycemia,No,No,Yes,No,40,Female,High,High,Positive
138
+ Lymphoma,No,Yes,No,No,40,Female,Normal,High,Positive
139
+ Pneumonia,Yes,Yes,Yes,Yes,40,Female,Normal,High,Positive
140
+ Psoriasis,No,Yes,Yes,No,40,Male,High,Normal,Positive
141
+ Psoriasis,Yes,No,No,No,40,Male,High,Normal,Positive
142
+ Psoriasis,No,Yes,No,No,40,Female,Normal,High,Positive
143
+ Tuberculosis,Yes,Yes,Yes,Yes,40,Male,High,High,Positive
144
+ Tuberculosis,Yes,Yes,Yes,Yes,40,Male,High,High,Positive
145
+ Anxiety Disorders,No,No,No,No,42,Male,Low,Normal,Negative
146
+ Common Cold,Yes,Yes,No,No,42,Female,High,High,Negative
147
+ Depression,Yes,No,No,Yes,42,Male,High,Normal,Negative
148
+ Influenza,No,Yes,No,No,42,Female,Normal,High,Negative
149
+ Kidney Cancer,Yes,No,No,No,42,Female,Normal,Normal,Negative
150
+ Liver Cancer,Yes,No,Yes,Yes,42,Male,Normal,Low,Negative
151
+ Liver Disease,Yes,No,No,Yes,42,Female,Normal,Normal,Negative
152
+ Lung Cancer,Yes,No,Yes,Yes,42,Male,Normal,Low,Negative
153
+ Migraine,Yes,Yes,Yes,No,42,Male,High,High,Negative
154
+ Osteoarthritis,No,No,Yes,No,42,Male,Normal,Low,Negative
155
+ Stroke,Yes,No,Yes,No,42,Male,Normal,Low,Negative
156
+ Urinary Tract Infection,No,Yes,Yes,Yes,42,Female,Normal,Low,Negative
157
+ Diabetes,Yes,Yes,Yes,No,42,Male,High,Normal,Positive
158
+ Hypothyroidism,Yes,Yes,Yes,No,42,Female,High,High,Positive
159
+ Hypothyroidism,Yes,Yes,Yes,No,42,Female,High,High,Positive
160
+ Kidney Disease,Yes,No,Yes,No,42,Female,High,Low,Positive
161
+ Pneumonia,No,Yes,Yes,Yes,43,Female,High,Normal,Positive
162
+ Allergic Rhinitis,No,Yes,Yes,No,45,Male,High,Normal,Negative
163
+ Autism Spectrum Disorder (ASD),No,No,Yes,No,45,Male,Normal,Normal,Negative
164
+ Crohn's Disease,Yes,No,Yes,No,45,Male,High,Normal,Negative
165
+ Hepatitis,Yes,No,Yes,No,45,Female,High,High,Negative
166
+ Hepatitis,Yes,No,Yes,No,45,Female,High,High,Negative
167
+ Hyperglycemia,No,No,Yes,No,45,Male,Normal,Normal,Negative
168
+ Kidney Cancer,No,Yes,Yes,Yes,45,Male,Normal,Low,Negative
169
+ Kidney Disease,Yes,Yes,No,No,45,Male,Normal,High,Negative
170
+ Melanoma,Yes,No,Yes,No,45,Male,High,Normal,Negative
171
+ Migraine,No,No,No,No,45,Female,Low,Normal,Negative
172
+ Ovarian Cancer,No,No,Yes,No,45,Male,Normal,Normal,Negative
173
+ Pancreatitis,No,Yes,Yes,Yes,45,Male,Normal,Low,Negative
174
+ Rheumatoid Arthritis,Yes,No,No,No,45,Male,Normal,Normal,Negative
175
+ Stroke,No,No,Yes,No,45,Male,Normal,Normal,Negative
176
+ Turner Syndrome,No,No,Yes,No,45,Male,High,High,Negative
177
+ Turner Syndrome,No,No,Yes,No,45,Male,High,High,Negative
178
+ Urinary Tract Infection,No,No,No,No,45,Female,Low,Normal,Negative
179
+ Zika Virus,No,Yes,Yes,No,45,Female,High,High,Negative
180
+ Zika Virus,No,Yes,Yes,No,45,Female,High,High,Negative
181
+ Allergic Rhinitis,Yes,Yes,Yes,No,45,Male,High,Normal,Positive
182
+ Anxiety Disorders,Yes,Yes,Yes,No,45,Male,High,Normal,Positive
183
+ Asthma,Yes,Yes,No,Yes,45,Male,Normal,Normal,Positive
184
+ Asthma,Yes,Yes,No,Yes,45,Male,Normal,Normal,Positive
185
+ Cataracts,No,No,Yes,No,45,Female,Normal,High,Positive
186
+ Crohn's Disease,No,No,Yes,No,45,Female,High,High,Positive
187
+ Crohn's Disease,Yes,Yes,Yes,No,45,Female,High,High,Positive
188
+ Depression,No,No,Yes,No,45,Female,High,High,Positive
189
+ Diabetes,Yes,No,Yes,No,45,Female,High,High,Positive
190
+ Diabetes,No,Yes,Yes,No,45,Male,Normal,High,Positive
191
+ Hypertension,Yes,No,Yes,No,45,Male,Normal,High,Positive
192
+ Hypothyroidism,No,No,Yes,No,45,Female,High,High,Positive
193
+ Liver Disease,Yes,Yes,Yes,No,45,Female,Normal,High,Positive
194
+ Multiple Sclerosis,Yes,No,No,No,45,Female,High,High,Positive
195
+ Multiple Sclerosis,Yes,No,No,No,45,Female,High,High,Positive
196
+ Osteoarthritis,Yes,No,Yes,Yes,45,Male,High,Normal,Positive
197
+ Osteoporosis,Yes,Yes,Yes,No,45,Female,Normal,High,Positive
198
+ Pneumocystis Pneumonia (PCP),Yes,Yes,Yes,No,45,Female,High,High,Positive
199
+ Pneumonia,Yes,Yes,Yes,Yes,45,Male,High,High,Positive
200
+ Scoliosis,No,No,No,No,45,Female,High,High,Positive
201
+ Sickle Cell Anemia,No,No,Yes,No,45,Female,Normal,Normal,Positive
202
+ Tetanus,No,No,Yes,No,45,Male,Normal,High,Positive
203
+ Tetanus,No,No,Yes,No,45,Male,Normal,High,Positive
204
+ Hypertension,No,No,No,No,48,Female,Low,High,Negative
205
+ Hypothyroidism,No,No,Yes,No,48,Male,Normal,High,Negative
206
+ Hypothyroidism,No,No,Yes,No,48,Male,Normal,High,Negative
207
+ Allergic Rhinitis,Yes,No,No,No,50,Male,High,High,Negative
208
+ Anemia,No,No,Yes,No,50,Male,Normal,Normal,Negative
209
+ Anxiety Disorders,No,No,Yes,No,50,Male,Normal,Normal,Negative
210
+ Cholera,Yes,No,Yes,Yes,50,Female,High,High,Negative
211
+ Cholera,Yes,No,Yes,Yes,50,Female,High,High,Negative
212
+ Crohn's Disease,Yes,Yes,Yes,No,50,Male,Normal,High,Negative
213
+ Crohn's Disease,No,No,Yes,No,50,Male,Normal,High,Negative
214
+ Depression,No,Yes,Yes,No,50,Female,Low,Low,Negative
215
+ Diabetes,No,Yes,No,No,50,Male,Normal,High,Negative
216
+ Endometriosis,Yes,No,No,No,50,Male,High,Normal,Negative
217
+ Hypertension,No,Yes,No,No,50,Female,Normal,Low,Negative
218
+ Hypothyroidism,Yes,Yes,Yes,No,50,Male,Normal,High,Negative
219
+ Kidney Cancer,No,Yes,No,No,50,Male,Low,High,Negative
220
+ Kidney Disease,No,Yes,No,Yes,50,Male,Normal,Normal,Negative
221
+ Pancreatitis,No,Yes,No,No,50,Male,Low,High,Negative
222
+ Rheumatoid Arthritis,No,Yes,No,No,50,Female,Low,Normal,Negative
223
+ Sepsis,Yes,Yes,Yes,No,50,Male,Normal,Normal,Negative
224
+ Sleep Apnea,Yes,No,Yes,Yes,50,Male,High,High,Negative
225
+ Urinary Tract Infection,Yes,Yes,No,Yes,50,Male,High,Normal,Negative
226
+ Asthma,Yes,Yes,Yes,Yes,50,Female,Normal,High,Positive
227
+ Bronchitis,Yes,Yes,Yes,Yes,50,Male,High,High,Positive
228
+ Down Syndrome,No,No,Yes,No,50,Female,High,High,Positive
229
+ Ebola Virus,Yes,Yes,Yes,Yes,50,Male,Normal,Normal,Positive
230
+ Ebola Virus,Yes,Yes,Yes,Yes,50,Male,Normal,Normal,Positive
231
+ Eczema,No,Yes,No,No,50,Female,High,High,Positive
232
+ Gastroenteritis,Yes,Yes,Yes,Yes,50,Female,High,Normal,Positive
233
+ Klinefelter Syndrome,No,No,Yes,No,50,Female,Normal,Normal,Positive
234
+ Liver Cancer,No,Yes,Yes,Yes,50,Male,High,High,Positive
235
+ Lyme Disease,Yes,No,No,No,50,Male,Normal,High,Positive
236
+ Lyme Disease,Yes,No,No,No,50,Male,Normal,High,Positive
237
+ Pancreatic Cancer,No,No,Yes,No,50,Female,High,High,Positive
238
+ Pneumothorax,No,No,Yes,Yes,50,Female,High,High,Positive
239
+ Stroke,No,Yes,Yes,Yes,50,Male,High,High,Positive
240
+ Ulcerative Colitis,No,Yes,Yes,No,50,Female,Normal,High,Positive
241
+ Hypertension,Yes,Yes,No,No,52,Male,Normal,Low,Negative
242
+ Multiple Sclerosis,No,Yes,Yes,No,52,Male,Normal,Normal,Negative
243
+ Multiple Sclerosis,No,Yes,Yes,No,52,Male,Normal,Normal,Negative
244
+ Appendicitis,Yes,No,Yes,No,55,Male,Normal,Normal,Negative
245
+ Bronchitis,No,No,Yes,Yes,55,Male,High,High,Negative
246
+ Bronchitis,Yes,Yes,Yes,Yes,55,Male,High,Normal,Negative
247
+ Common Cold,Yes,No,Yes,Yes,55,Male,Normal,Low,Negative
248
+ Diabetes,No,Yes,No,No,55,Female,Normal,High,Negative
249
+ Esophageal Cancer,No,No,Yes,No,55,Male,Normal,Normal,Negative
250
+ HIV/AIDS,Yes,No,No,No,55,Female,High,High,Negative
251
+ HIV/AIDS,Yes,No,No,No,55,Female,High,High,Negative
252
+ Hypertension,No,Yes,No,No,55,Female,Normal,Low,Negative
253
+ Liver Disease,No,Yes,Yes,No,55,Male,High,Low,Negative
254
+ Marfan Syndrome,No,No,Yes,No,55,Male,High,High,Negative
255
+ Migraine,No,Yes,Yes,Yes,55,Female,Normal,Low,Negative
256
+ Osteoporosis,No,No,Yes,No,55,Male,High,Normal,Negative
257
+ Parkinson's Disease,No,No,Yes,No,55,Female,Normal,Low,Negative
258
+ Parkinson's Disease,No,No,Yes,No,55,Female,Normal,Low,Negative
259
+ Anxiety Disorders,Yes,Yes,No,No,55,Female,Normal,Low,Positive
260
+ Coronary Artery Disease,No,No,Yes,No,55,Female,Normal,Normal,Positive
261
+ Coronary Artery Disease,No,No,Yes,No,55,Female,Normal,Normal,Positive
262
+ Hemorrhoids,No,No,No,No,55,Female,High,High,Positive
263
+ Hypertension,Yes,No,Yes,No,55,Male,High,Normal,Positive
264
+ Hypothyroidism,No,No,Yes,No,55,Female,High,High,Positive
265
+ Osteoarthritis,Yes,Yes,No,No,55,Female,High,High,Positive
266
+ Osteoporosis,Yes,No,Yes,Yes,55,Male,High,Low,Positive
267
+ Osteoporosis,No,Yes,Yes,No,55,Female,Normal,Normal,Positive
268
+ Osteoporosis,Yes,No,Yes,No,55,Female,Normal,Normal,Positive
269
+ Osteoporosis,Yes,No,Yes,No,55,Female,Normal,Normal,Positive
270
+ Polycystic Ovary Syndrome (PCOS),Yes,Yes,No,No,55,Female,Normal,Normal,Positive
271
+ Systemic Lupus Erythematosus...,No,Yes,Yes,No,55,Female,High,High,Positive
272
+ Typhoid Fever,No,Yes,No,No,55,Male,Normal,Low,Positive
273
+ Typhoid Fever,No,Yes,No,No,55,Male,Normal,Low,Positive
274
+ Influenza,Yes,Yes,Yes,Yes,56,Male,High,High,Positive
275
+ Pneumonia,Yes,Yes,No,Yes,57,Male,Normal,High,Negative
276
+ Breast Cancer,No,No,Yes,No,60,Male,High,High,Negative
277
+ Coronary Artery Disease,Yes,Yes,No,No,60,Male,High,High,Negative
278
+ Coronary Artery Disease,Yes,Yes,No,No,60,Male,High,High,Negative
279
+ Hyperthyroidism,No,No,Yes,No,60,Male,Normal,Normal,Negative
280
+ Measles,Yes,Yes,No,No,60,Female,High,Normal,Negative
281
+ Measles,Yes,Yes,No,No,60,Female,High,Normal,Negative
282
+ Osteoarthritis,No,Yes,No,Yes,60,Female,Normal,Normal,Negative
283
+ Osteomyelitis,No,No,Yes,No,60,Male,Normal,Normal,Negative
284
+ Osteoporosis,Yes,No,No,No,60,Male,High,High,Negative
285
+ Osteoporosis,No,Yes,No,No,60,Male,High,High,Negative
286
+ Osteoporosis,No,Yes,No,No,60,Male,High,High,Negative
287
+ Polio,Yes,Yes,Yes,No,60,Male,Normal,Normal,Negative
288
+ Asthma,Yes,Yes,Yes,Yes,60,Female,High,High,Positive
289
+ Chronic Kidney Disease,No,No,Yes,No,60,Female,Normal,High,Positive
290
+ Hemophilia,No,No,Yes,No,60,Female,Normal,Normal,Positive
291
+ Hepatitis B,No,Yes,Yes,No,60,Male,Normal,Low,Positive
292
+ Hepatitis B,No,Yes,Yes,No,60,Male,Normal,Low,Positive
293
+ Hypertension,No,No,Yes,No,60,Female,High,Normal,Positive
294
+ Hypertension,Yes,No,Yes,No,60,Male,High,Normal,Positive
295
+ Hypertension,No,No,No,No,60,Female,High,High,Positive
296
+ Kidney Cancer,Yes,Yes,Yes,No,60,Female,High,Normal,Positive
297
+ Kidney Disease,Yes,Yes,Yes,Yes,60,Female,High,High,Positive
298
+ Osteoporosis,Yes,No,Yes,No,60,Male,High,Normal,Positive
299
+ Pancreatitis,Yes,Yes,Yes,No,60,Female,High,Normal,Positive
300
+ Parkinson's Disease,Yes,Yes,No,No,60,Male,High,Normal,Positive
301
+ Parkinson's Disease,Yes,Yes,No,No,60,Male,High,Normal,Positive
302
+ Prader-Willi Syndrome,No,No,Yes,No,60,Female,Normal,Normal,Positive
303
+ Rheumatoid Arthritis,No,No,Yes,No,60,Female,High,High,Positive
304
+ Thyroid Cancer,No,No,Yes,No,60,Female,High,High,Positive
305
+ Tuberculosis,Yes,Yes,Yes,No,60,Female,High,High,Positive
306
+ Bladder Cancer,No,No,Yes,No,65,Male,Normal,Normal,Negative
307
+ Diabetes,No,No,Yes,No,65,Male,Normal,High,Negative
308
+ Otitis Media (Ear Infection),Yes,Yes,Yes,No,65,Male,Normal,Normal,Negative
309
+ Stroke,Yes,No,Yes,No,65,Female,High,Low,Negative
310
+ Stroke,Yes,No,Yes,No,65,Female,High,Low,Negative
311
+ Tourette Syndrome,No,No,Yes,No,65,Male,High,High,Negative
312
+ Urinary Tract Infection (UTI),Yes,No,Yes,No,65,Male,High,Normal,Negative
313
+ Alzheimer's Disease,No,Yes,No,No,65,Male,Normal,High,Positive
314
+ Alzheimer's Disease,No,Yes,No,No,65,Male,Normal,High,Positive
315
+ Alzheimer's Disease,No,No,Yes,No,65,Female,High,High,Positive
316
+ Bronchitis,Yes,No,Yes,Yes,65,Male,High,High,Positive
317
+ Chronic Obstructive Pulmonary Disease (COPD),Yes,No,Yes,Yes,65,Female,High,High,Positive
318
+ Chronic Obstructive Pulmonary Disease (COPD),Yes,No,Yes,Yes,65,Female,High,High,Positive
319
+ Dementia,No,No,Yes,No,65,Female,High,High,Positive
320
+ Diabetes,Yes,Yes,Yes,No,65,Female,Normal,High,Positive
321
+ Diverticulitis,No,No,Yes,No,65,Female,High,High,Positive
322
+ Liver Cancer,Yes,Yes,Yes,No,65,Female,High,High,Positive
323
+ Lung Cancer,Yes,Yes,Yes,No,65,Female,High,High,Positive
324
+ Lung Cancer,Yes,No,Yes,No,65,Female,Normal,High,Positive
325
+ Mumps,No,No,Yes,No,65,Male,Normal,High,Positive
326
+ Mumps,No,No,Yes,No,65,Male,Normal,High,Positive
327
+ Osteoporosis,No,Yes,Yes,No,65,Female,High,High,Positive
328
+ Stroke,Yes,Yes,Yes,No,65,Female,High,High,Positive
329
+ Alzheimer's Disease,Yes,No,Yes,No,70,Female,High,Normal,Negative
330
+ Alzheimer's Disease,Yes,No,Yes,No,70,Female,High,Normal,Negative
331
+ Cholecystitis,No,No,Yes,No,70,Male,Normal,Normal,Negative
332
+ Chronic Obstructive Pulmonary Disease (COPD),No,Yes,Yes,Yes,70,Male,Normal,High,Negative
333
+ Chronic Obstructive Pulmonary Disease (COPD),No,Yes,Yes,Yes,70,Male,Normal,High,Negative
334
+ Osteoporosis,Yes,No,No,No,70,Male,Normal,Normal,Negative
335
+ Parkinson's Disease,No,No,Yes,No,70,Male,Normal,Normal,Negative
336
+ Prostate Cancer,Yes,Yes,No,No,70,Male,High,Normal,Negative
337
+ Schizophrenia,No,Yes,Yes,No,70,Male,Normal,Normal,Negative
338
+ Gout,Yes,No,Yes,No,70,Female,Normal,High,Positive
339
+ Migraine,No,No,Yes,No,70,Female,Normal,Normal,Positive
340
+ Stroke,No,Yes,No,No,70,Male,Normal,High,Positive
341
+ Stroke,No,Yes,No,No,70,Male,Normal,High,Positive
342
+ Testicular Cancer,No,No,Yes,No,70,Female,High,High,Positive
343
+ Tonsillitis,Yes,Yes,Yes,No,70,Female,High,High,Positive
344
+ Williams Syndrome,No,No,Yes,No,70,Female,Normal,Normal,Positive
345
+ Stroke,Yes,No,Yes,No,80,Female,High,High,Positive
346
+ Stroke,Yes,No,Yes,No,80,Female,High,High,Positive
347
+ Stroke,Yes,No,Yes,No,85,Male,High,High,Positive
348
+ Stroke,Yes,No,Yes,No,85,Male,High,High,Positive
349
+ Stroke,Yes,No,Yes,No,90,Female,High,High,Positive
350
+ Stroke,Yes,No,Yes,No,90,Female,High,High,Positive
artifacts/Docmate.ipynb ADDED
@@ -0,0 +1,790 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": 1,
6
+ "metadata": {},
7
+ "outputs": [
8
+ {
9
+ "data": {
10
+ "text/html": [
11
+ "<div>\n",
12
+ "<style scoped>\n",
13
+ " .dataframe tbody tr th:only-of-type {\n",
14
+ " vertical-align: middle;\n",
15
+ " }\n",
16
+ "\n",
17
+ " .dataframe tbody tr th {\n",
18
+ " vertical-align: top;\n",
19
+ " }\n",
20
+ "\n",
21
+ " .dataframe thead th {\n",
22
+ " text-align: right;\n",
23
+ " }\n",
24
+ "</style>\n",
25
+ "<table border=\"1\" class=\"dataframe\">\n",
26
+ " <thead>\n",
27
+ " <tr style=\"text-align: right;\">\n",
28
+ " <th></th>\n",
29
+ " <th>Disease</th>\n",
30
+ " <th>Fever</th>\n",
31
+ " <th>Cough</th>\n",
32
+ " <th>Fatigue</th>\n",
33
+ " <th>Difficulty Breathing</th>\n",
34
+ " <th>Age</th>\n",
35
+ " <th>Gender</th>\n",
36
+ " <th>Blood Pressure</th>\n",
37
+ " <th>Cholesterol Level</th>\n",
38
+ " <th>Outcome Variable</th>\n",
39
+ " </tr>\n",
40
+ " </thead>\n",
41
+ " <tbody>\n",
42
+ " <tr>\n",
43
+ " <th>0</th>\n",
44
+ " <td>Influenza</td>\n",
45
+ " <td>Yes</td>\n",
46
+ " <td>No</td>\n",
47
+ " <td>Yes</td>\n",
48
+ " <td>Yes</td>\n",
49
+ " <td>19</td>\n",
50
+ " <td>Female</td>\n",
51
+ " <td>Low</td>\n",
52
+ " <td>Normal</td>\n",
53
+ " <td>Positive</td>\n",
54
+ " </tr>\n",
55
+ " <tr>\n",
56
+ " <th>1</th>\n",
57
+ " <td>Common Cold</td>\n",
58
+ " <td>No</td>\n",
59
+ " <td>Yes</td>\n",
60
+ " <td>Yes</td>\n",
61
+ " <td>No</td>\n",
62
+ " <td>25</td>\n",
63
+ " <td>Female</td>\n",
64
+ " <td>Normal</td>\n",
65
+ " <td>Normal</td>\n",
66
+ " <td>Negative</td>\n",
67
+ " </tr>\n",
68
+ " <tr>\n",
69
+ " <th>2</th>\n",
70
+ " <td>Eczema</td>\n",
71
+ " <td>No</td>\n",
72
+ " <td>Yes</td>\n",
73
+ " <td>Yes</td>\n",
74
+ " <td>No</td>\n",
75
+ " <td>25</td>\n",
76
+ " <td>Female</td>\n",
77
+ " <td>Normal</td>\n",
78
+ " <td>Normal</td>\n",
79
+ " <td>Negative</td>\n",
80
+ " </tr>\n",
81
+ " <tr>\n",
82
+ " <th>3</th>\n",
83
+ " <td>Asthma</td>\n",
84
+ " <td>Yes</td>\n",
85
+ " <td>Yes</td>\n",
86
+ " <td>No</td>\n",
87
+ " <td>Yes</td>\n",
88
+ " <td>25</td>\n",
89
+ " <td>Male</td>\n",
90
+ " <td>Normal</td>\n",
91
+ " <td>Normal</td>\n",
92
+ " <td>Positive</td>\n",
93
+ " </tr>\n",
94
+ " <tr>\n",
95
+ " <th>4</th>\n",
96
+ " <td>Asthma</td>\n",
97
+ " <td>Yes</td>\n",
98
+ " <td>Yes</td>\n",
99
+ " <td>No</td>\n",
100
+ " <td>Yes</td>\n",
101
+ " <td>25</td>\n",
102
+ " <td>Male</td>\n",
103
+ " <td>Normal</td>\n",
104
+ " <td>Normal</td>\n",
105
+ " <td>Positive</td>\n",
106
+ " </tr>\n",
107
+ " </tbody>\n",
108
+ "</table>\n",
109
+ "</div>"
110
+ ],
111
+ "text/plain": [
112
+ " Disease Fever Cough Fatigue Difficulty Breathing Age Gender \\\n",
113
+ "0 Influenza Yes No Yes Yes 19 Female \n",
114
+ "1 Common Cold No Yes Yes No 25 Female \n",
115
+ "2 Eczema No Yes Yes No 25 Female \n",
116
+ "3 Asthma Yes Yes No Yes 25 Male \n",
117
+ "4 Asthma Yes Yes No Yes 25 Male \n",
118
+ "\n",
119
+ " Blood Pressure Cholesterol Level Outcome Variable \n",
120
+ "0 Low Normal Positive \n",
121
+ "1 Normal Normal Negative \n",
122
+ "2 Normal Normal Negative \n",
123
+ "3 Normal Normal Positive \n",
124
+ "4 Normal Normal Positive "
125
+ ]
126
+ },
127
+ "execution_count": 1,
128
+ "metadata": {},
129
+ "output_type": "execute_result"
130
+ }
131
+ ],
132
+ "source": [
133
+ "# Loading dataset disease and symptoms dataset\n",
134
+ "import pandas as pd\n",
135
+ "\n",
136
+ "data = pd.read_csv(\"../artifacts/Disease_symptom_and_patient_profile_dataset.csv\")\n",
137
+ "diseases = data.copy()\n",
138
+ "data.head()"
139
+ ]
140
+ },
141
+ {
142
+ "cell_type": "code",
143
+ "execution_count": 2,
144
+ "metadata": {},
145
+ "outputs": [
146
+ {
147
+ "data": {
148
+ "text/plain": [
149
+ "(349, 10)"
150
+ ]
151
+ },
152
+ "execution_count": 2,
153
+ "metadata": {},
154
+ "output_type": "execute_result"
155
+ }
156
+ ],
157
+ "source": [
158
+ "# Data size\n",
159
+ "data.shape"
160
+ ]
161
+ },
162
+ {
163
+ "cell_type": "code",
164
+ "execution_count": 3,
165
+ "metadata": {},
166
+ "outputs": [
167
+ {
168
+ "name": "stdout",
169
+ "output_type": "stream",
170
+ "text": [
171
+ "<class 'pandas.core.frame.DataFrame'>\n",
172
+ "RangeIndex: 349 entries, 0 to 348\n",
173
+ "Data columns (total 10 columns):\n",
174
+ " # Column Non-Null Count Dtype \n",
175
+ "--- ------ -------------- ----- \n",
176
+ " 0 Disease 349 non-null object\n",
177
+ " 1 Fever 349 non-null object\n",
178
+ " 2 Cough 349 non-null object\n",
179
+ " 3 Fatigue 349 non-null object\n",
180
+ " 4 Difficulty Breathing 349 non-null object\n",
181
+ " 5 Age 349 non-null int64 \n",
182
+ " 6 Gender 349 non-null object\n",
183
+ " 7 Blood Pressure 349 non-null object\n",
184
+ " 8 Cholesterol Level 349 non-null object\n",
185
+ " 9 Outcome Variable 349 non-null object\n",
186
+ "dtypes: int64(1), object(9)\n",
187
+ "memory usage: 27.4+ KB\n"
188
+ ]
189
+ }
190
+ ],
191
+ "source": [
192
+ "# Info about dataset\n",
193
+ "data.info()"
194
+ ]
195
+ },
196
+ {
197
+ "cell_type": "code",
198
+ "execution_count": 4,
199
+ "metadata": {},
200
+ "outputs": [
201
+ {
202
+ "data": {
203
+ "text/plain": [
204
+ "Disease 0\n",
205
+ "Fever 0\n",
206
+ "Cough 0\n",
207
+ "Fatigue 0\n",
208
+ "Difficulty Breathing 0\n",
209
+ "Age 0\n",
210
+ "Gender 0\n",
211
+ "Blood Pressure 0\n",
212
+ "Cholesterol Level 0\n",
213
+ "Outcome Variable 0\n",
214
+ "dtype: int64"
215
+ ]
216
+ },
217
+ "execution_count": 4,
218
+ "metadata": {},
219
+ "output_type": "execute_result"
220
+ }
221
+ ],
222
+ "source": [
223
+ "# Exploratory data analysis\n",
224
+ "# Null values in the dataset\n",
225
+ "data.isnull().sum()"
226
+ ]
227
+ },
228
+ {
229
+ "cell_type": "code",
230
+ "execution_count": 5,
231
+ "metadata": {},
232
+ "outputs": [
233
+ {
234
+ "data": {
235
+ "text/plain": [
236
+ "49"
237
+ ]
238
+ },
239
+ "execution_count": 5,
240
+ "metadata": {},
241
+ "output_type": "execute_result"
242
+ }
243
+ ],
244
+ "source": [
245
+ "# Duplicate entries\n",
246
+ "data.duplicated().sum()"
247
+ ]
248
+ },
249
+ {
250
+ "cell_type": "code",
251
+ "execution_count": 6,
252
+ "metadata": {},
253
+ "outputs": [
254
+ {
255
+ "data": {
256
+ "text/plain": [
257
+ "0"
258
+ ]
259
+ },
260
+ "execution_count": 6,
261
+ "metadata": {},
262
+ "output_type": "execute_result"
263
+ }
264
+ ],
265
+ "source": [
266
+ "# Remove duplicates\n",
267
+ "data.drop_duplicates(inplace=True)\n",
268
+ "data.duplicated().sum()"
269
+ ]
270
+ },
271
+ {
272
+ "cell_type": "code",
273
+ "execution_count": 7,
274
+ "metadata": {},
275
+ "outputs": [
276
+ {
277
+ "data": {
278
+ "text/plain": [
279
+ "Disease\n",
280
+ "Asthma 16\n",
281
+ "Osteoporosis 12\n",
282
+ "Stroke 11\n",
283
+ "Hypertension 10\n",
284
+ "Migraine 10\n",
285
+ " ..\n",
286
+ "Fibromyalgia 1\n",
287
+ "Eating Disorders (Anorexia,... 1\n",
288
+ "Chickenpox 1\n",
289
+ "Rabies 1\n",
290
+ "Williams Syndrome 1\n",
291
+ "Name: count, Length: 116, dtype: int64"
292
+ ]
293
+ },
294
+ "execution_count": 7,
295
+ "metadata": {},
296
+ "output_type": "execute_result"
297
+ }
298
+ ],
299
+ "source": [
300
+ "# Nos of dieseases\n",
301
+ "data['Disease'].value_counts()"
302
+ ]
303
+ },
304
+ {
305
+ "cell_type": "code",
306
+ "execution_count": 8,
307
+ "metadata": {},
308
+ "outputs": [
309
+ {
310
+ "data": {
311
+ "text/plain": [
312
+ "count 300.000000\n",
313
+ "mean 45.756667\n",
314
+ "std 12.596548\n",
315
+ "min 19.000000\n",
316
+ "25% 35.000000\n",
317
+ "50% 45.000000\n",
318
+ "75% 55.000000\n",
319
+ "max 90.000000\n",
320
+ "Name: Age, dtype: float64"
321
+ ]
322
+ },
323
+ "execution_count": 8,
324
+ "metadata": {},
325
+ "output_type": "execute_result"
326
+ }
327
+ ],
328
+ "source": [
329
+ "# Age range\n",
330
+ "data['Age'].describe()"
331
+ ]
332
+ },
333
+ {
334
+ "cell_type": "code",
335
+ "execution_count": 9,
336
+ "metadata": {},
337
+ "outputs": [],
338
+ "source": [
339
+ "# Numerical columns ie Age column categorization\n",
340
+ "# Categories : Less than 40 - Young, 40-60 - Mid, and above 60 aged\n",
341
+ "def age_category(age):\n",
342
+ " if age < 40:\n",
343
+ " return 'young'\n",
344
+ " elif age < 60:\n",
345
+ " return 'Middle'\n",
346
+ " elif age >= 60:\n",
347
+ " return 'Old'\n",
348
+ " \n",
349
+ "data['Age'] = data['Age'].apply(lambda x: age_category(x))"
350
+ ]
351
+ },
352
+ {
353
+ "cell_type": "code",
354
+ "execution_count": 10,
355
+ "metadata": {},
356
+ "outputs": [
357
+ {
358
+ "data": {
359
+ "text/html": [
360
+ "<div>\n",
361
+ "<style scoped>\n",
362
+ " .dataframe tbody tr th:only-of-type {\n",
363
+ " vertical-align: middle;\n",
364
+ " }\n",
365
+ "\n",
366
+ " .dataframe tbody tr th {\n",
367
+ " vertical-align: top;\n",
368
+ " }\n",
369
+ "\n",
370
+ " .dataframe thead th {\n",
371
+ " text-align: right;\n",
372
+ " }\n",
373
+ "</style>\n",
374
+ "<table border=\"1\" class=\"dataframe\">\n",
375
+ " <thead>\n",
376
+ " <tr style=\"text-align: right;\">\n",
377
+ " <th></th>\n",
378
+ " <th>Disease</th>\n",
379
+ " <th>Fever</th>\n",
380
+ " <th>Cough</th>\n",
381
+ " <th>Fatigue</th>\n",
382
+ " <th>Difficulty Breathing</th>\n",
383
+ " <th>Age</th>\n",
384
+ " <th>Gender</th>\n",
385
+ " <th>Blood Pressure</th>\n",
386
+ " <th>Cholesterol Level</th>\n",
387
+ " <th>Outcome Variable</th>\n",
388
+ " </tr>\n",
389
+ " </thead>\n",
390
+ " <tbody>\n",
391
+ " <tr>\n",
392
+ " <th>0</th>\n",
393
+ " <td>Influenza</td>\n",
394
+ " <td>Yes</td>\n",
395
+ " <td>No</td>\n",
396
+ " <td>Yes</td>\n",
397
+ " <td>Yes</td>\n",
398
+ " <td>young</td>\n",
399
+ " <td>Female</td>\n",
400
+ " <td>Low</td>\n",
401
+ " <td>Normal</td>\n",
402
+ " <td>Positive</td>\n",
403
+ " </tr>\n",
404
+ " <tr>\n",
405
+ " <th>1</th>\n",
406
+ " <td>Common Cold</td>\n",
407
+ " <td>No</td>\n",
408
+ " <td>Yes</td>\n",
409
+ " <td>Yes</td>\n",
410
+ " <td>No</td>\n",
411
+ " <td>young</td>\n",
412
+ " <td>Female</td>\n",
413
+ " <td>Normal</td>\n",
414
+ " <td>Normal</td>\n",
415
+ " <td>Negative</td>\n",
416
+ " </tr>\n",
417
+ " <tr>\n",
418
+ " <th>2</th>\n",
419
+ " <td>Eczema</td>\n",
420
+ " <td>No</td>\n",
421
+ " <td>Yes</td>\n",
422
+ " <td>Yes</td>\n",
423
+ " <td>No</td>\n",
424
+ " <td>young</td>\n",
425
+ " <td>Female</td>\n",
426
+ " <td>Normal</td>\n",
427
+ " <td>Normal</td>\n",
428
+ " <td>Negative</td>\n",
429
+ " </tr>\n",
430
+ " <tr>\n",
431
+ " <th>3</th>\n",
432
+ " <td>Asthma</td>\n",
433
+ " <td>Yes</td>\n",
434
+ " <td>Yes</td>\n",
435
+ " <td>No</td>\n",
436
+ " <td>Yes</td>\n",
437
+ " <td>young</td>\n",
438
+ " <td>Male</td>\n",
439
+ " <td>Normal</td>\n",
440
+ " <td>Normal</td>\n",
441
+ " <td>Positive</td>\n",
442
+ " </tr>\n",
443
+ " <tr>\n",
444
+ " <th>5</th>\n",
445
+ " <td>Eczema</td>\n",
446
+ " <td>Yes</td>\n",
447
+ " <td>No</td>\n",
448
+ " <td>No</td>\n",
449
+ " <td>No</td>\n",
450
+ " <td>young</td>\n",
451
+ " <td>Female</td>\n",
452
+ " <td>Normal</td>\n",
453
+ " <td>Normal</td>\n",
454
+ " <td>Positive</td>\n",
455
+ " </tr>\n",
456
+ " </tbody>\n",
457
+ "</table>\n",
458
+ "</div>"
459
+ ],
460
+ "text/plain": [
461
+ " Disease Fever Cough Fatigue Difficulty Breathing Age Gender \\\n",
462
+ "0 Influenza Yes No Yes Yes young Female \n",
463
+ "1 Common Cold No Yes Yes No young Female \n",
464
+ "2 Eczema No Yes Yes No young Female \n",
465
+ "3 Asthma Yes Yes No Yes young Male \n",
466
+ "5 Eczema Yes No No No young Female \n",
467
+ "\n",
468
+ " Blood Pressure Cholesterol Level Outcome Variable \n",
469
+ "0 Low Normal Positive \n",
470
+ "1 Normal Normal Negative \n",
471
+ "2 Normal Normal Negative \n",
472
+ "3 Normal Normal Positive \n",
473
+ "5 Normal Normal Positive "
474
+ ]
475
+ },
476
+ "execution_count": 10,
477
+ "metadata": {},
478
+ "output_type": "execute_result"
479
+ }
480
+ ],
481
+ "source": [
482
+ "data.head()"
483
+ ]
484
+ },
485
+ {
486
+ "cell_type": "code",
487
+ "execution_count": 11,
488
+ "metadata": {},
489
+ "outputs": [],
490
+ "source": [
491
+ "# Categorical columns encoding\n",
492
+ "from sklearn.preprocessing import LabelEncoder\n",
493
+ "\n",
494
+ "le = LabelEncoder()\n",
495
+ "data['Fever'] = le.fit_transform(data['Fever'])\n",
496
+ "data['Cough'] = le.fit_transform(data['Cough'])\n",
497
+ "data['Fatigue'] = le.fit_transform(data['Fatigue'])\n",
498
+ "data['Difficulty Breathing'] = le.fit_transform(data['Difficulty Breathing'])\n",
499
+ "data['Age'] = le.fit_transform(data['Age'])\n",
500
+ "data['Gender'] = le.fit_transform(data['Gender'])\n",
501
+ "data['Blood Pressure'] = le.fit_transform(data['Blood Pressure'])\n",
502
+ "data['Cholesterol Level'] = le.fit_transform(data['Cholesterol Level'])\n",
503
+ "data['Outcome Variable'] = le.fit_transform(data['Outcome Variable'])"
504
+ ]
505
+ },
506
+ {
507
+ "cell_type": "code",
508
+ "execution_count": 12,
509
+ "metadata": {},
510
+ "outputs": [
511
+ {
512
+ "data": {
513
+ "text/html": [
514
+ "<div>\n",
515
+ "<style scoped>\n",
516
+ " .dataframe tbody tr th:only-of-type {\n",
517
+ " vertical-align: middle;\n",
518
+ " }\n",
519
+ "\n",
520
+ " .dataframe tbody tr th {\n",
521
+ " vertical-align: top;\n",
522
+ " }\n",
523
+ "\n",
524
+ " .dataframe thead th {\n",
525
+ " text-align: right;\n",
526
+ " }\n",
527
+ "</style>\n",
528
+ "<table border=\"1\" class=\"dataframe\">\n",
529
+ " <thead>\n",
530
+ " <tr style=\"text-align: right;\">\n",
531
+ " <th></th>\n",
532
+ " <th>Disease</th>\n",
533
+ " <th>Fever</th>\n",
534
+ " <th>Cough</th>\n",
535
+ " <th>Fatigue</th>\n",
536
+ " <th>Difficulty Breathing</th>\n",
537
+ " <th>Age</th>\n",
538
+ " <th>Gender</th>\n",
539
+ " <th>Blood Pressure</th>\n",
540
+ " <th>Cholesterol Level</th>\n",
541
+ " <th>Outcome Variable</th>\n",
542
+ " </tr>\n",
543
+ " </thead>\n",
544
+ " <tbody>\n",
545
+ " <tr>\n",
546
+ " <th>0</th>\n",
547
+ " <td>Influenza</td>\n",
548
+ " <td>1</td>\n",
549
+ " <td>0</td>\n",
550
+ " <td>1</td>\n",
551
+ " <td>1</td>\n",
552
+ " <td>2</td>\n",
553
+ " <td>0</td>\n",
554
+ " <td>1</td>\n",
555
+ " <td>2</td>\n",
556
+ " <td>1</td>\n",
557
+ " </tr>\n",
558
+ " <tr>\n",
559
+ " <th>1</th>\n",
560
+ " <td>Common Cold</td>\n",
561
+ " <td>0</td>\n",
562
+ " <td>1</td>\n",
563
+ " <td>1</td>\n",
564
+ " <td>0</td>\n",
565
+ " <td>2</td>\n",
566
+ " <td>0</td>\n",
567
+ " <td>2</td>\n",
568
+ " <td>2</td>\n",
569
+ " <td>0</td>\n",
570
+ " </tr>\n",
571
+ " <tr>\n",
572
+ " <th>2</th>\n",
573
+ " <td>Eczema</td>\n",
574
+ " <td>0</td>\n",
575
+ " <td>1</td>\n",
576
+ " <td>1</td>\n",
577
+ " <td>0</td>\n",
578
+ " <td>2</td>\n",
579
+ " <td>0</td>\n",
580
+ " <td>2</td>\n",
581
+ " <td>2</td>\n",
582
+ " <td>0</td>\n",
583
+ " </tr>\n",
584
+ " <tr>\n",
585
+ " <th>3</th>\n",
586
+ " <td>Asthma</td>\n",
587
+ " <td>1</td>\n",
588
+ " <td>1</td>\n",
589
+ " <td>0</td>\n",
590
+ " <td>1</td>\n",
591
+ " <td>2</td>\n",
592
+ " <td>1</td>\n",
593
+ " <td>2</td>\n",
594
+ " <td>2</td>\n",
595
+ " <td>1</td>\n",
596
+ " </tr>\n",
597
+ " <tr>\n",
598
+ " <th>5</th>\n",
599
+ " <td>Eczema</td>\n",
600
+ " <td>1</td>\n",
601
+ " <td>0</td>\n",
602
+ " <td>0</td>\n",
603
+ " <td>0</td>\n",
604
+ " <td>2</td>\n",
605
+ " <td>0</td>\n",
606
+ " <td>2</td>\n",
607
+ " <td>2</td>\n",
608
+ " <td>1</td>\n",
609
+ " </tr>\n",
610
+ " </tbody>\n",
611
+ "</table>\n",
612
+ "</div>"
613
+ ],
614
+ "text/plain": [
615
+ " Disease Fever Cough Fatigue Difficulty Breathing Age Gender \\\n",
616
+ "0 Influenza 1 0 1 1 2 0 \n",
617
+ "1 Common Cold 0 1 1 0 2 0 \n",
618
+ "2 Eczema 0 1 1 0 2 0 \n",
619
+ "3 Asthma 1 1 0 1 2 1 \n",
620
+ "5 Eczema 1 0 0 0 2 0 \n",
621
+ "\n",
622
+ " Blood Pressure Cholesterol Level Outcome Variable \n",
623
+ "0 1 2 1 \n",
624
+ "1 2 2 0 \n",
625
+ "2 2 2 0 \n",
626
+ "3 2 2 1 \n",
627
+ "5 2 2 1 "
628
+ ]
629
+ },
630
+ "execution_count": 12,
631
+ "metadata": {},
632
+ "output_type": "execute_result"
633
+ }
634
+ ],
635
+ "source": [
636
+ "# Labelled data\n",
637
+ "data.head()"
638
+ ]
639
+ },
640
+ {
641
+ "cell_type": "code",
642
+ "execution_count": 13,
643
+ "metadata": {},
644
+ "outputs": [],
645
+ "source": [
646
+ "# Features selection\n",
647
+ "# Predictor variables\n",
648
+ "X = data.drop(['Disease', 'Outcome Variable'], axis=1)\n",
649
+ "\n",
650
+ "# Target variable\n",
651
+ "y = data['Outcome Variable']"
652
+ ]
653
+ },
654
+ {
655
+ "cell_type": "code",
656
+ "execution_count": 14,
657
+ "metadata": {},
658
+ "outputs": [],
659
+ "source": [
660
+ "# Splitting of dataset\n",
661
+ "from sklearn.model_selection import train_test_split\n",
662
+ "\n",
663
+ "X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)"
664
+ ]
665
+ },
666
+ {
667
+ "cell_type": "code",
668
+ "execution_count": 15,
669
+ "metadata": {},
670
+ "outputs": [
671
+ {
672
+ "data": {
673
+ "text/plain": [
674
+ "((240, 8), (60, 8))"
675
+ ]
676
+ },
677
+ "execution_count": 15,
678
+ "metadata": {},
679
+ "output_type": "execute_result"
680
+ }
681
+ ],
682
+ "source": [
683
+ "# Split size verification\n",
684
+ "X_train.shape, X_test.shape"
685
+ ]
686
+ },
687
+ {
688
+ "cell_type": "code",
689
+ "execution_count": 16,
690
+ "metadata": {},
691
+ "outputs": [],
692
+ "source": [
693
+ "# Model training\n",
694
+ "from sklearn.linear_model import LogisticRegression\n",
695
+ "\n",
696
+ "logit_model = LogisticRegression()\n",
697
+ "logit_model = logit_model.fit(X_train,y_train)"
698
+ ]
699
+ },
700
+ {
701
+ "cell_type": "code",
702
+ "execution_count": 17,
703
+ "metadata": {},
704
+ "outputs": [
705
+ {
706
+ "data": {
707
+ "text/plain": [
708
+ "0.75"
709
+ ]
710
+ },
711
+ "execution_count": 17,
712
+ "metadata": {},
713
+ "output_type": "execute_result"
714
+ }
715
+ ],
716
+ "source": [
717
+ "# Model evaluation\n",
718
+ "logit_model.score(X_test,y_test)"
719
+ ]
720
+ },
721
+ {
722
+ "cell_type": "code",
723
+ "execution_count": 18,
724
+ "metadata": {},
725
+ "outputs": [],
726
+ "source": [
727
+ "# Catboost model\n",
728
+ "from catboost import CatBoostClassifier\n",
729
+ "\n",
730
+ "cat_model = CatBoostClassifier(verbose=False)\n",
731
+ "cat_model = cat_model.fit(X_train,y_train)"
732
+ ]
733
+ },
734
+ {
735
+ "cell_type": "code",
736
+ "execution_count": 19,
737
+ "metadata": {},
738
+ "outputs": [
739
+ {
740
+ "data": {
741
+ "text/plain": [
742
+ "0.7333333333333333"
743
+ ]
744
+ },
745
+ "execution_count": 19,
746
+ "metadata": {},
747
+ "output_type": "execute_result"
748
+ }
749
+ ],
750
+ "source": [
751
+ "# Model evaluation\n",
752
+ "cat_model.score(X_test,y_test)"
753
+ ]
754
+ },
755
+ {
756
+ "cell_type": "code",
757
+ "execution_count": 21,
758
+ "metadata": {},
759
+ "outputs": [],
760
+ "source": [
761
+ "# Logistic regresson model has better performance\n",
762
+ "import pickle\n",
763
+ "\n",
764
+ "with open(\"Logit_model.pkl\", 'wb') as file:\n",
765
+ " pickle.dump(logit_model, file)"
766
+ ]
767
+ }
768
+ ],
769
+ "metadata": {
770
+ "kernelspec": {
771
+ "display_name": "DeepLearning",
772
+ "language": "python",
773
+ "name": "python3"
774
+ },
775
+ "language_info": {
776
+ "codemirror_mode": {
777
+ "name": "ipython",
778
+ "version": 3
779
+ },
780
+ "file_extension": ".py",
781
+ "mimetype": "text/x-python",
782
+ "name": "python",
783
+ "nbconvert_exporter": "python",
784
+ "pygments_lexer": "ipython3",
785
+ "version": "3.10.13"
786
+ }
787
+ },
788
+ "nbformat": 4,
789
+ "nbformat_minor": 2
790
+ }
artifacts/Logit_model.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f772672ab69814e9d703e707da032375e577d702e82a3213bdf4952cea27371
3
+ size 918
artifacts/response.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+
2
+
3
+ If you have a fever and cough, it's important to seek medical attention to determine the cause and receive appropriate treatment. Here are some steps you can take:
4
+
5
+ 1. Self-isolate: To prevent the spread of illness, stay home and avoid contact with others as much as possible
avatar.py ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Main driver code of chatbot
2
+ import streamlit as st
3
+ from streamlit_option_menu import option_menu
4
+ from src.components.avatarsys import AvatarSystem
5
+ from src.utils.accessory import play_speech, listen, save_output, load_output
6
+ import speech_recognition as sr
7
+ import pickle
8
+
9
+ # Global
10
+ salutation = "Pleasure meeting you. Have a nice day!"
11
+
12
+ # Page title
13
+ st.title("Hi, Chatmate here!")
14
+ st.markdown("<h3 style='text-align: center;'>Hello, I am your chatbot assistant.</h1>", unsafe_allow_html=True)
15
+
16
+ mode = option_menu("Choose mode of interaction", ["Doc-Bot", "Text", "Voice"],
17
+ icons=['heart-pulse','chat-text', 'mic'],
18
+ menu_icon="cast", default_index=0, orientation="horizontal")
19
+
20
+ if "HF_TOKEN" not in st.session_state:
21
+ st.session_state.HF_TOKEN = ''
22
+ st.write("Add your Huggingface Access Token to use the chatbot.")
23
+ st.session_state.HF_TOKEN = st.text_input("Your Access Token: ")
24
+
25
+ # Chatbot configuration initiation
26
+ if st.session_state.HF_TOKEN != '':
27
+ avatar = AvatarSystem(st.session_state.HF_TOKEN)
28
+
29
+ def chat_history(input, response, sentiment):
30
+ if 'history' not in st.session_state:
31
+ st.session_state.history = dict()
32
+ st.session_state.history[input] = [response, sentiment]
33
+ return st.session_state.history
34
+
35
+ def response(input_text, docbot):
36
+ # Getting response and sentiment of response
37
+ output = avatar.process_input(input_text, docbot)
38
+ # Save output response in txt
39
+ save_output(output)
40
+ response_sentiment = output['emotion']
41
+ ans = load_output()
42
+
43
+ return ans, response_sentiment
44
+
45
+ if mode == "Doc-Bot" and st.session_state.HF_TOKEN != '':
46
+ st.write("Doc-Bot implementation")
47
+ # with open("artifacts/logit_model.pkl", "rb") as file:
48
+ # logit_model = pickle.load(file)
49
+
50
+ if 'doc_chat_hist' not in st.session_state:
51
+ st.session_state.doc_chat_hist = dict()
52
+
53
+ # Form requires unique key
54
+ with st.form(key=f'Chat form', clear_on_submit=True):
55
+ user_input = st.text_input("You: ", value="", placeholder="Ask anything or Type 'Exit'")
56
+ col1, col2, col3, col4, col5, col6 = st.columns(6)
57
+ save = col6.form_submit_button("Click here")
58
+
59
+ if save and user_input != "":
60
+ user_input = user_input.lower() + '?'
61
+
62
+ # Exiting the chat
63
+ if 'exit' in user_input:
64
+ st.write(salutation)
65
+ play_speech(salutation)
66
+
67
+ # Getting response and sentiment of response
68
+ ans, senti = response(user_input, docbot=True)
69
+ # st.button("Audio", on_click=play_speech(ans))
70
+
71
+ # Chat history
72
+ st.session_state.doc_chat_hist = chat_history(user_input, ans, senti)
73
+
74
+ # Chat history display
75
+ st.markdown("### Chat History: ")
76
+ with st.container(border=True):
77
+ for key in st.session_state.doc_chat_hist.keys():
78
+ user_col1, user_col2, user_col3 = st.columns(3, vertical_alignment="center")
79
+ user = user_col3.container(border=True)
80
+ user.write(key)
81
+ bot_col1, bot_col2, bot_col3 = st.columns([4, 1, 1], vertical_alignment='center')
82
+ bot = bot_col1.container(border=True)
83
+ bot.write(st.session_state.doc_chat_hist[key][0])
84
+
85
+ elif mode == "Text" and st.session_state.HF_TOKEN != '':
86
+ if 'chathist' not in st.session_state:
87
+ st.session_state.chathist = dict()
88
+
89
+ # Form requires unique key
90
+ with st.form(key=f'Chat form', clear_on_submit=True):
91
+ user_input = st.text_input("You: ", value="", placeholder="Ask anything or Type 'Exit'")
92
+ col1, col2, col3, col4, col5, col6 = st.columns(6)
93
+ save = col6.form_submit_button("Click here")
94
+
95
+ if save and user_input != "":
96
+ user_input = user_input.lower() + '?'
97
+
98
+ # Exiting the chat
99
+ if 'exit' in user_input:
100
+ st.write(salutation)
101
+ play_speech(salutation)
102
+
103
+ # Getting response and sentiment of response
104
+ ans, senti = response(user_input, docbot=False)
105
+ # st.button("Audio", on_click=play_speech(ans))
106
+
107
+ # Chat history
108
+ st.session_state.chathist = chat_history(user_input, ans, senti)
109
+
110
+ # Chat history display
111
+ st.markdown("### Chat History: ")
112
+ with st.container(border=True):
113
+ for key in st.session_state.chathist.keys():
114
+ user_col1, user_col2, user_col3 = st.columns(3, vertical_alignment="center")
115
+ user = user_col3.container(border=True)
116
+ user.write(key)
117
+ bot_col1, bot_col2, bot_col3 = st.columns([4, 1, 1], vertical_alignment='center')
118
+ bot = bot_col1.container(border=True)
119
+ bot.write(st.session_state.chathist[key][0])
120
+
121
+ elif mode == "Voice" and st.session_state.HF_TOKEN != '':
122
+ # Voice to text conversion
123
+ r = sr.Recognizer()
124
+ while 1:
125
+ with sr.Microphone() as source:
126
+ st.write("Speak: ") # print("Say something!")
127
+ st.write("Please wait, response under process...")
128
+ audio = r.listen(source)
129
+ r.adjust_for_ambient_noise(source, duration=0.2)
130
+ text = r.recognize_google(audio)
131
+ user_input = text + '?'
132
+ if text == '':
133
+ user_input='exit?'
134
+ st.write("Start again please. Failed to recognise the voice.")
135
+
136
+ # Exiting the chat
137
+ if 'exit' in user_input:
138
+ st.write(salutation) # print("Pleasure meeting you. Have a nice day!")
139
+ play_speech(salutation)
140
+ st.stop()
141
+ break
142
+
143
+ #Getting response and sentiment of response
144
+ response(user_input)# output = avatar.process_input(user_input)
logs/10_28_2024_08_58_32.log ADDED
@@ -0,0 +1,805 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [2024-10-28 08:58:35,149] 28 root - INFO - LLM model for text generation created.
2
+ [2024-10-28 08:58:48,077] 21 root - INFO - Avatar system initiated.
3
+ [2024-10-28 08:58:50,912] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
4
+ [2024-10-28 08:59:54,255] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
5
+ [2024-10-28 08:59:54,263] 31 root - INFO - Text response generated.
6
+ [2024-10-28 08:59:55,582] 26 root - INFO - Text response generated.
7
+ [2024-10-28 08:59:56,943] 30 root - INFO - Sentiment of response generated.
8
+ [2024-10-28 08:59:56,950] 30 root - INFO - Response sentiment received.
9
+ [2024-10-28 08:59:57,939] 19 root - INFO - Response text convertion to audio done.
10
+ [2024-10-28 08:59:57,939] 34 root - INFO - Generated response saved as audio mp3 format.
11
+ [2024-10-28 08:59:57,941] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
12
+ [2024-10-28 08:59:57,941] 85 root - INFO - Stored text loaded.
13
+ [2024-10-28 08:59:59,110] 19 root - INFO - Response text convertion to audio done.
14
+ [2024-10-28 09:00:00,196] 24 root - INFO - Generated audio file loaded
15
+ [2024-10-28 09:00:03,904] 33 root - INFO - Created audio file removed for entry of new file.
16
+ [2024-10-28 09:09:22,781] 28 root - INFO - LLM model for text generation created.
17
+ [2024-10-28 09:09:25,549] 21 root - INFO - Avatar system initiated.
18
+ [2024-10-28 09:09:25,869] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
19
+ [2024-10-28 09:10:10,220] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
20
+ [2024-10-28 09:10:26,599] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
21
+ [2024-10-28 09:10:26,604] 31 root - INFO - Text response generated.
22
+ [2024-10-28 09:10:27,632] 26 root - INFO - Text response generated.
23
+ [2024-10-28 09:10:28,553] 30 root - INFO - Sentiment of response generated.
24
+ [2024-10-28 09:10:28,559] 30 root - INFO - Response sentiment received.
25
+ [2024-10-28 09:10:29,313] 19 root - INFO - Response text convertion to audio done.
26
+ [2024-10-28 09:10:29,313] 34 root - INFO - Generated response saved as audio mp3 format.
27
+ [2024-10-28 09:10:29,317] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
28
+ [2024-10-28 09:10:29,319] 85 root - INFO - Stored text loaded.
29
+ [2024-10-28 09:10:30,254] 19 root - INFO - Response text convertion to audio done.
30
+ [2024-10-28 09:10:30,255] 24 root - INFO - Generated audio file loaded
31
+ [2024-10-28 09:10:33,930] 33 root - INFO - Created audio file removed for entry of new file.
32
+ [2024-10-28 09:11:57,880] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
33
+ [2024-10-28 09:11:58,430] 19 root - INFO - Response text convertion to audio done.
34
+ [2024-10-28 09:11:58,432] 24 root - INFO - Generated audio file loaded
35
+ [2024-10-28 09:12:01,480] 33 root - INFO - Created audio file removed for entry of new file.
36
+ [2024-10-28 09:12:09,389] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
37
+ [2024-10-28 09:12:23,237] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
38
+ [2024-10-28 09:12:28,611] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
39
+ [2024-10-28 09:12:31,693] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
40
+ [2024-10-28 09:12:40,639] 31 root - INFO - Text response generated.
41
+ [2024-10-28 09:12:42,217] 26 root - INFO - Text response generated.
42
+ [2024-10-28 09:12:42,343] 30 root - INFO - Sentiment of response generated.
43
+ [2024-10-28 09:12:42,343] 30 root - INFO - Response sentiment received.
44
+ [2024-10-28 09:12:43,318] 19 root - INFO - Response text convertion to audio done.
45
+ [2024-10-28 09:12:43,319] 34 root - INFO - Generated response saved as audio mp3 format.
46
+ [2024-10-28 09:12:43,323] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
47
+ [2024-10-28 09:12:43,325] 85 root - INFO - Stored text loaded.
48
+ [2024-10-28 09:12:44,325] 19 root - INFO - Response text convertion to audio done.
49
+ [2024-10-28 09:12:44,325] 24 root - INFO - Generated audio file loaded
50
+ [2024-10-28 09:12:48,000] 33 root - INFO - Created audio file removed for entry of new file.
51
+ [2024-10-28 09:12:51,620] 31 root - INFO - Text response generated.
52
+ [2024-10-28 09:12:56,891] 26 root - INFO - Text response generated.
53
+ [2024-10-28 09:12:56,972] 30 root - INFO - Sentiment of response generated.
54
+ [2024-10-28 09:12:56,973] 30 root - INFO - Response sentiment received.
55
+ [2024-10-28 09:13:49,631] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
56
+ [2024-10-28 09:13:50,311] 19 root - INFO - Response text convertion to audio done.
57
+ [2024-10-28 09:13:50,314] 24 root - INFO - Generated audio file loaded
58
+ [2024-10-28 09:13:53,354] 33 root - INFO - Created audio file removed for entry of new file.
59
+ [2024-10-28 09:13:59,060] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
60
+ [2024-10-28 09:17:47,870] 28 root - INFO - LLM model for text generation created.
61
+ [2024-10-28 09:17:51,060] 21 root - INFO - Avatar system initiated.
62
+ [2024-10-28 09:17:51,369] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
63
+ [2024-10-28 09:19:13,214] 28 root - INFO - LLM model for text generation created.
64
+ [2024-10-28 09:19:15,643] 21 root - INFO - Avatar system initiated.
65
+ [2024-10-28 09:19:16,032] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
66
+ [2024-10-28 09:23:05,258] 28 root - INFO - LLM model for text generation created.
67
+ [2024-10-28 09:23:09,622] 21 root - INFO - Avatar system initiated.
68
+ [2024-10-28 09:23:09,945] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
69
+ [2024-10-28 09:23:09,947] 31 root - INFO - Text response generated.
70
+ [2024-10-28 09:23:12,328] 26 root - INFO - Text response generated.
71
+ [2024-10-28 09:23:13,675] 30 root - INFO - Sentiment of response generated.
72
+ [2024-10-28 09:23:13,678] 30 root - INFO - Response sentiment received.
73
+ [2024-10-28 09:23:24,505] 19 root - INFO - Response text convertion to audio done.
74
+ [2024-10-28 09:23:24,505] 34 root - INFO - Generated response saved as audio mp3 format.
75
+ [2024-10-28 09:23:24,511] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
76
+ [2024-10-28 09:23:24,513] 85 root - INFO - Stored text loaded.
77
+ [2024-10-28 09:23:26,749] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
78
+ [2024-10-28 09:23:26,753] 31 root - INFO - Text response generated.
79
+ [2024-10-28 09:23:27,808] 26 root - INFO - Text response generated.
80
+ [2024-10-28 09:23:28,010] 30 root - INFO - Sentiment of response generated.
81
+ [2024-10-28 09:23:28,016] 30 root - INFO - Response sentiment received.
82
+ [2024-10-28 09:23:28,871] 19 root - INFO - Response text convertion to audio done.
83
+ [2024-10-28 09:23:28,871] 34 root - INFO - Generated response saved as audio mp3 format.
84
+ [2024-10-28 09:23:28,875] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
85
+ [2024-10-28 09:23:28,877] 85 root - INFO - Stored text loaded.
86
+ [2024-10-28 09:23:30,056] 19 root - INFO - Response text convertion to audio done.
87
+ [2024-10-28 09:23:35,183] 19 root - INFO - Response text convertion to audio done.
88
+ [2024-10-28 09:23:35,191] 24 root - INFO - Generated audio file loaded
89
+ [2024-10-28 09:23:57,381] 33 root - INFO - Created audio file removed for entry of new file.
90
+ [2024-10-28 09:24:13,818] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
91
+ [2024-10-28 09:24:13,829] 31 root - INFO - Text response generated.
92
+ [2024-10-28 09:24:14,890] 26 root - INFO - Text response generated.
93
+ [2024-10-28 09:24:15,251] 30 root - INFO - Sentiment of response generated.
94
+ [2024-10-28 09:24:15,251] 30 root - INFO - Response sentiment received.
95
+ [2024-10-28 09:24:26,078] 19 root - INFO - Response text convertion to audio done.
96
+ [2024-10-28 09:24:26,078] 34 root - INFO - Generated response saved as audio mp3 format.
97
+ [2024-10-28 09:24:26,081] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
98
+ [2024-10-28 09:24:26,083] 85 root - INFO - Stored text loaded.
99
+ [2024-10-28 09:24:35,401] 19 root - INFO - Response text convertion to audio done.
100
+ [2024-10-28 09:24:35,403] 24 root - INFO - Generated audio file loaded
101
+ [2024-10-28 09:24:43,670] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
102
+ [2024-10-28 09:25:09,812] 33 root - INFO - Created audio file removed for entry of new file.
103
+ [2024-10-28 09:28:11,007] 28 root - INFO - LLM model for text generation created.
104
+ [2024-10-28 09:28:14,518] 21 root - INFO - Avatar system initiated.
105
+ [2024-10-28 09:28:14,927] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
106
+ [2024-10-28 09:28:37,308] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
107
+ [2024-10-28 09:33:28,946] 28 root - INFO - LLM model for text generation created.
108
+ [2024-10-28 09:33:31,469] 21 root - INFO - Avatar system initiated.
109
+ [2024-10-28 09:33:31,790] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
110
+ [2024-10-28 09:33:58,917] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
111
+ [2024-10-28 09:33:58,929] 31 root - INFO - Text response generated.
112
+ [2024-10-28 09:34:00,549] 26 root - INFO - Text response generated.
113
+ [2024-10-28 09:34:00,664] 30 root - INFO - Sentiment of response generated.
114
+ [2024-10-28 09:34:00,669] 30 root - INFO - Response sentiment received.
115
+ [2024-10-28 09:34:01,353] 19 root - INFO - Response text convertion to audio done.
116
+ [2024-10-28 09:34:01,353] 34 root - INFO - Generated response saved as audio mp3 format.
117
+ [2024-10-28 09:34:01,356] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
118
+ [2024-10-28 09:34:01,359] 85 root - INFO - Stored text loaded.
119
+ [2024-10-28 09:34:01,986] 19 root - INFO - Response text convertion to audio done.
120
+ [2024-10-28 09:34:01,988] 24 root - INFO - Generated audio file loaded
121
+ [2024-10-28 09:34:05,654] 33 root - INFO - Created audio file removed for entry of new file.
122
+ [2024-10-28 09:42:28,627] 28 root - INFO - LLM model for text generation created.
123
+ [2024-10-28 09:42:30,558] 21 root - INFO - Avatar system initiated.
124
+ [2024-10-28 09:42:30,892] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
125
+ [2024-10-28 09:42:44,104] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
126
+ [2024-10-28 09:42:44,112] 31 root - INFO - Text response generated.
127
+ [2024-10-28 09:42:45,035] 26 root - INFO - Text response generated.
128
+ [2024-10-28 09:42:45,180] 30 root - INFO - Sentiment of response generated.
129
+ [2024-10-28 09:42:45,186] 30 root - INFO - Response sentiment received.
130
+ [2024-10-28 09:42:46,164] 19 root - INFO - Response text convertion to audio done.
131
+ [2024-10-28 09:42:46,164] 34 root - INFO - Generated response saved as audio mp3 format.
132
+ [2024-10-28 09:42:46,167] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
133
+ [2024-10-28 09:42:46,169] 85 root - INFO - Stored text loaded.
134
+ [2024-10-28 09:45:11,738] 28 root - INFO - LLM model for text generation created.
135
+ [2024-10-28 09:45:13,628] 21 root - INFO - Avatar system initiated.
136
+ [2024-10-28 09:45:13,875] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
137
+ [2024-10-28 09:45:26,253] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
138
+ [2024-10-28 09:45:26,268] 31 root - INFO - Text response generated.
139
+ [2024-10-28 09:45:27,327] 26 root - INFO - Text response generated.
140
+ [2024-10-28 09:45:27,500] 30 root - INFO - Sentiment of response generated.
141
+ [2024-10-28 09:45:27,506] 30 root - INFO - Response sentiment received.
142
+ [2024-10-28 09:45:28,722] 19 root - INFO - Response text convertion to audio done.
143
+ [2024-10-28 09:45:28,722] 34 root - INFO - Generated response saved as audio mp3 format.
144
+ [2024-10-28 09:45:28,726] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
145
+ [2024-10-28 09:45:28,727] 85 root - INFO - Stored text loaded.
146
+ [2024-10-28 09:45:42,539] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
147
+ [2024-10-28 09:46:18,897] 28 root - INFO - LLM model for text generation created.
148
+ [2024-10-28 09:46:21,451] 21 root - INFO - Avatar system initiated.
149
+ [2024-10-28 09:46:21,854] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
150
+ [2024-10-28 09:46:33,621] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
151
+ [2024-10-28 09:46:33,633] 31 root - INFO - Text response generated.
152
+ [2024-10-28 09:46:34,754] 26 root - INFO - Text response generated.
153
+ [2024-10-28 09:46:34,925] 30 root - INFO - Sentiment of response generated.
154
+ [2024-10-28 09:46:34,931] 30 root - INFO - Response sentiment received.
155
+ [2024-10-28 09:46:35,974] 19 root - INFO - Response text convertion to audio done.
156
+ [2024-10-28 09:46:35,975] 34 root - INFO - Generated response saved as audio mp3 format.
157
+ [2024-10-28 09:46:35,978] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
158
+ [2024-10-28 09:46:35,980] 85 root - INFO - Stored text loaded.
159
+ [2024-10-28 09:46:44,054] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
160
+ [2024-10-28 09:48:06,710] 28 root - INFO - LLM model for text generation created.
161
+ [2024-10-28 09:48:09,741] 21 root - INFO - Avatar system initiated.
162
+ [2024-10-28 09:48:10,130] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
163
+ [2024-10-28 09:48:28,462] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
164
+ [2024-10-28 09:48:28,470] 31 root - INFO - Text response generated.
165
+ [2024-10-28 09:48:29,439] 26 root - INFO - Text response generated.
166
+ [2024-10-28 09:48:29,629] 30 root - INFO - Sentiment of response generated.
167
+ [2024-10-28 09:48:29,635] 30 root - INFO - Response sentiment received.
168
+ [2024-10-28 09:48:31,585] 19 root - INFO - Response text convertion to audio done.
169
+ [2024-10-28 09:48:31,586] 34 root - INFO - Generated response saved as audio mp3 format.
170
+ [2024-10-28 09:48:31,589] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
171
+ [2024-10-28 09:48:31,593] 85 root - INFO - Stored text loaded.
172
+ [2024-10-28 09:48:33,798] 19 root - INFO - Response text convertion to audio done.
173
+ [2024-10-28 09:48:33,800] 24 root - INFO - Generated audio file loaded
174
+ [2024-10-28 09:48:37,481] 33 root - INFO - Created audio file removed for entry of new file.
175
+ [2024-10-28 09:48:45,692] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
176
+ [2024-10-28 09:48:45,702] 31 root - INFO - Text response generated.
177
+ [2024-10-28 09:48:48,027] 26 root - INFO - Text response generated.
178
+ [2024-10-28 09:48:48,261] 30 root - INFO - Sentiment of response generated.
179
+ [2024-10-28 09:48:48,261] 30 root - INFO - Response sentiment received.
180
+ [2024-10-28 09:48:54,863] 19 root - INFO - Response text convertion to audio done.
181
+ [2024-10-28 09:48:54,863] 34 root - INFO - Generated response saved as audio mp3 format.
182
+ [2024-10-28 09:48:54,866] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
183
+ [2024-10-28 09:48:54,867] 85 root - INFO - Stored text loaded.
184
+ [2024-10-28 09:49:01,923] 19 root - INFO - Response text convertion to audio done.
185
+ [2024-10-28 09:49:01,924] 24 root - INFO - Generated audio file loaded
186
+ [2024-10-28 09:49:32,767] 33 root - INFO - Created audio file removed for entry of new file.
187
+ [2024-10-28 09:54:02,910] 28 root - INFO - LLM model for text generation created.
188
+ [2024-10-28 09:54:05,741] 21 root - INFO - Avatar system initiated.
189
+ [2024-10-28 09:54:06,037] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
190
+ [2024-10-28 09:54:20,485] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
191
+ [2024-10-28 09:54:20,495] 31 root - INFO - Text response generated.
192
+ [2024-10-28 09:54:21,670] 26 root - INFO - Text response generated.
193
+ [2024-10-28 09:54:21,781] 30 root - INFO - Sentiment of response generated.
194
+ [2024-10-28 09:54:21,785] 30 root - INFO - Response sentiment received.
195
+ [2024-10-28 09:54:22,468] 19 root - INFO - Response text convertion to audio done.
196
+ [2024-10-28 09:54:22,468] 34 root - INFO - Generated response saved as audio mp3 format.
197
+ [2024-10-28 09:54:22,469] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
198
+ [2024-10-28 09:54:22,469] 85 root - INFO - Stored text loaded.
199
+ [2024-10-28 09:54:40,446] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
200
+ [2024-10-28 09:56:31,689] 28 root - INFO - LLM model for text generation created.
201
+ [2024-10-28 09:56:34,181] 21 root - INFO - Avatar system initiated.
202
+ [2024-10-28 09:56:34,476] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
203
+ [2024-10-28 09:56:49,411] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
204
+ [2024-10-28 09:56:49,423] 31 root - INFO - Text response generated.
205
+ [2024-10-28 09:56:50,429] 26 root - INFO - Text response generated.
206
+ [2024-10-28 09:56:50,632] 30 root - INFO - Sentiment of response generated.
207
+ [2024-10-28 09:56:50,637] 30 root - INFO - Response sentiment received.
208
+ [2024-10-28 09:56:51,531] 19 root - INFO - Response text convertion to audio done.
209
+ [2024-10-28 09:56:51,532] 34 root - INFO - Generated response saved as audio mp3 format.
210
+ [2024-10-28 09:56:51,536] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
211
+ [2024-10-28 09:56:51,539] 85 root - INFO - Stored text loaded.
212
+ [2024-10-28 09:57:00,023] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
213
+ [2024-10-28 09:58:12,707] 28 root - INFO - LLM model for text generation created.
214
+ [2024-10-28 09:58:16,039] 21 root - INFO - Avatar system initiated.
215
+ [2024-10-28 09:58:16,340] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
216
+ [2024-10-28 09:58:16,348] 31 root - INFO - Text response generated.
217
+ [2024-10-28 09:58:17,262] 26 root - INFO - Text response generated.
218
+ [2024-10-28 09:58:17,372] 30 root - INFO - Sentiment of response generated.
219
+ [2024-10-28 09:58:17,373] 30 root - INFO - Response sentiment received.
220
+ [2024-10-28 09:58:17,994] 19 root - INFO - Response text convertion to audio done.
221
+ [2024-10-28 09:58:17,994] 34 root - INFO - Generated response saved as audio mp3 format.
222
+ [2024-10-28 09:58:17,997] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
223
+ [2024-10-28 09:58:17,998] 85 root - INFO - Stored text loaded.
224
+ [2024-10-28 09:58:18,581] 19 root - INFO - Response text convertion to audio done.
225
+ [2024-10-28 09:58:18,582] 24 root - INFO - Generated audio file loaded
226
+ [2024-10-28 09:58:22,262] 33 root - INFO - Created audio file removed for entry of new file.
227
+ [2024-10-28 10:02:17,349] 28 root - INFO - LLM model for text generation created.
228
+ [2024-10-28 10:02:19,862] 21 root - INFO - Avatar system initiated.
229
+ [2024-10-28 10:02:20,220] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
230
+ [2024-10-28 10:02:30,828] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
231
+ [2024-10-28 10:02:30,834] 31 root - INFO - Text response generated.
232
+ [2024-10-28 10:02:31,950] 26 root - INFO - Text response generated.
233
+ [2024-10-28 10:02:32,156] 30 root - INFO - Sentiment of response generated.
234
+ [2024-10-28 10:02:32,161] 30 root - INFO - Response sentiment received.
235
+ [2024-10-28 10:02:32,780] 19 root - INFO - Response text convertion to audio done.
236
+ [2024-10-28 10:02:32,780] 34 root - INFO - Generated response saved as audio mp3 format.
237
+ [2024-10-28 10:02:32,781] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
238
+ [2024-10-28 10:02:32,782] 85 root - INFO - Stored text loaded.
239
+ [2024-10-28 10:02:33,622] 19 root - INFO - Response text convertion to audio done.
240
+ [2024-10-28 10:02:33,623] 24 root - INFO - Generated audio file loaded
241
+ [2024-10-28 10:02:36,071] 33 root - INFO - Created audio file removed for entry of new file.
242
+ [2024-10-28 10:02:50,791] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
243
+ [2024-10-28 10:02:50,806] 31 root - INFO - Text response generated.
244
+ [2024-10-28 10:02:51,825] 26 root - INFO - Text response generated.
245
+ [2024-10-28 10:02:52,101] 30 root - INFO - Sentiment of response generated.
246
+ [2024-10-28 10:02:52,102] 30 root - INFO - Response sentiment received.
247
+ [2024-10-28 10:02:58,264] 19 root - INFO - Response text convertion to audio done.
248
+ [2024-10-28 10:02:58,265] 34 root - INFO - Generated response saved as audio mp3 format.
249
+ [2024-10-28 10:02:58,266] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
250
+ [2024-10-28 10:02:58,267] 85 root - INFO - Stored text loaded.
251
+ [2024-10-28 10:03:04,838] 19 root - INFO - Response text convertion to audio done.
252
+ [2024-10-28 10:03:04,878] 24 root - INFO - Generated audio file loaded
253
+ [2024-10-28 10:03:35,705] 33 root - INFO - Created audio file removed for entry of new file.
254
+ [2024-10-28 10:12:20,877] 28 root - INFO - LLM model for text generation created.
255
+ [2024-10-28 10:12:23,039] 21 root - INFO - Avatar system initiated.
256
+ [2024-10-28 10:12:23,344] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
257
+ [2024-10-28 10:12:34,509] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
258
+ [2024-10-28 10:12:34,519] 31 root - INFO - Text response generated.
259
+ [2024-10-28 10:12:36,353] 26 root - INFO - Text response generated.
260
+ [2024-10-28 10:12:36,550] 30 root - INFO - Sentiment of response generated.
261
+ [2024-10-28 10:12:36,555] 30 root - INFO - Response sentiment received.
262
+ [2024-10-28 10:12:37,535] 19 root - INFO - Response text convertion to audio done.
263
+ [2024-10-28 10:12:37,550] 34 root - INFO - Generated response saved as audio mp3 format.
264
+ [2024-10-28 10:12:37,553] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
265
+ [2024-10-28 10:12:37,556] 85 root - INFO - Stored text loaded.
266
+ [2024-10-28 10:12:38,431] 19 root - INFO - Response text convertion to audio done.
267
+ [2024-10-28 10:12:38,432] 24 root - INFO - Generated audio file loaded
268
+ [2024-10-28 10:12:42,112] 33 root - INFO - Created audio file removed for entry of new file.
269
+ [2024-10-28 10:16:28,195] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
270
+ [2024-10-28 10:16:28,200] 31 root - INFO - Text response generated.
271
+ [2024-10-28 10:16:29,267] 26 root - INFO - Text response generated.
272
+ [2024-10-28 10:16:29,396] 30 root - INFO - Sentiment of response generated.
273
+ [2024-10-28 10:16:29,397] 30 root - INFO - Response sentiment received.
274
+ [2024-10-28 10:16:29,921] 19 root - INFO - Response text convertion to audio done.
275
+ [2024-10-28 10:16:29,922] 34 root - INFO - Generated response saved as audio mp3 format.
276
+ [2024-10-28 10:16:29,927] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
277
+ [2024-10-28 10:16:29,929] 85 root - INFO - Stored text loaded.
278
+ [2024-10-28 10:16:30,742] 19 root - INFO - Response text convertion to audio done.
279
+ [2024-10-28 10:16:30,744] 24 root - INFO - Generated audio file loaded
280
+ [2024-10-28 10:16:33,185] 33 root - INFO - Created audio file removed for entry of new file.
281
+ [2024-10-28 10:21:52,702] 28 root - INFO - LLM model for text generation created.
282
+ [2024-10-28 10:21:56,397] 21 root - INFO - Avatar system initiated.
283
+ [2024-10-28 10:21:56,631] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
284
+ [2024-10-28 10:22:04,512] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
285
+ [2024-10-28 10:22:04,518] 31 root - INFO - Text response generated.
286
+ [2024-10-28 10:22:05,988] 26 root - INFO - Text response generated.
287
+ [2024-10-28 10:22:06,090] 30 root - INFO - Sentiment of response generated.
288
+ [2024-10-28 10:22:06,102] 30 root - INFO - Response sentiment received.
289
+ [2024-10-28 10:22:06,911] 19 root - INFO - Response text convertion to audio done.
290
+ [2024-10-28 10:22:06,912] 34 root - INFO - Generated response saved as audio mp3 format.
291
+ [2024-10-28 10:22:06,916] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
292
+ [2024-10-28 10:22:06,920] 85 root - INFO - Stored text loaded.
293
+ [2024-10-28 10:22:07,576] 19 root - INFO - Response text convertion to audio done.
294
+ [2024-10-28 10:22:07,578] 24 root - INFO - Generated audio file loaded
295
+ [2024-10-28 10:22:11,252] 33 root - INFO - Created audio file removed for entry of new file.
296
+ [2024-10-28 10:22:14,606] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
297
+ [2024-10-28 10:22:14,609] 31 root - INFO - Text response generated.
298
+ [2024-10-28 10:22:16,011] 26 root - INFO - Text response generated.
299
+ [2024-10-28 10:22:16,177] 30 root - INFO - Sentiment of response generated.
300
+ [2024-10-28 10:22:16,178] 30 root - INFO - Response sentiment received.
301
+ [2024-10-28 10:22:17,483] 19 root - INFO - Response text convertion to audio done.
302
+ [2024-10-28 10:22:17,483] 34 root - INFO - Generated response saved as audio mp3 format.
303
+ [2024-10-28 10:22:17,484] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
304
+ [2024-10-28 10:22:17,484] 85 root - INFO - Stored text loaded.
305
+ [2024-10-28 10:22:20,348] 19 root - INFO - Response text convertion to audio done.
306
+ [2024-10-28 10:22:20,350] 24 root - INFO - Generated audio file loaded
307
+ [2024-10-28 10:22:22,794] 33 root - INFO - Created audio file removed for entry of new file.
308
+ [2024-10-28 10:22:55,372] 28 root - INFO - LLM model for text generation created.
309
+ [2024-10-28 10:22:57,730] 21 root - INFO - Avatar system initiated.
310
+ [2024-10-28 10:22:58,065] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
311
+ [2024-10-28 10:23:10,455] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
312
+ [2024-10-28 10:23:10,470] 31 root - INFO - Text response generated.
313
+ [2024-10-28 10:23:11,387] 26 root - INFO - Text response generated.
314
+ [2024-10-28 10:23:11,608] 30 root - INFO - Sentiment of response generated.
315
+ [2024-10-28 10:23:11,614] 30 root - INFO - Response sentiment received.
316
+ [2024-10-28 10:23:12,529] 19 root - INFO - Response text convertion to audio done.
317
+ [2024-10-28 10:23:12,530] 34 root - INFO - Generated response saved as audio mp3 format.
318
+ [2024-10-28 10:23:12,534] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
319
+ [2024-10-28 10:23:12,536] 85 root - INFO - Stored text loaded.
320
+ [2024-10-28 10:23:13,348] 19 root - INFO - Response text convertion to audio done.
321
+ [2024-10-28 10:23:13,349] 24 root - INFO - Generated audio file loaded
322
+ [2024-10-28 10:23:17,027] 33 root - INFO - Created audio file removed for entry of new file.
323
+ [2024-10-28 10:23:21,217] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
324
+ [2024-10-28 10:23:21,222] 31 root - INFO - Text response generated.
325
+ [2024-10-28 10:23:22,069] 26 root - INFO - Text response generated.
326
+ [2024-10-28 10:23:22,143] 30 root - INFO - Sentiment of response generated.
327
+ [2024-10-28 10:23:22,144] 30 root - INFO - Response sentiment received.
328
+ [2024-10-28 10:23:22,959] 19 root - INFO - Response text convertion to audio done.
329
+ [2024-10-28 10:23:22,960] 34 root - INFO - Generated response saved as audio mp3 format.
330
+ [2024-10-28 10:23:22,963] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
331
+ [2024-10-28 10:23:22,966] 85 root - INFO - Stored text loaded.
332
+ [2024-10-28 10:23:23,453] 19 root - INFO - Response text convertion to audio done.
333
+ [2024-10-28 10:23:23,456] 24 root - INFO - Generated audio file loaded
334
+ [2024-10-28 10:23:25,897] 33 root - INFO - Created audio file removed for entry of new file.
335
+ [2024-10-28 10:24:38,608] 28 root - INFO - LLM model for text generation created.
336
+ [2024-10-28 10:24:40,907] 21 root - INFO - Avatar system initiated.
337
+ [2024-10-28 10:24:41,138] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
338
+ [2024-10-28 10:24:51,772] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
339
+ [2024-10-28 10:24:51,776] 31 root - INFO - Text response generated.
340
+ [2024-10-28 10:24:52,688] 26 root - INFO - Text response generated.
341
+ [2024-10-28 10:24:52,880] 30 root - INFO - Sentiment of response generated.
342
+ [2024-10-28 10:24:52,884] 30 root - INFO - Response sentiment received.
343
+ [2024-10-28 10:24:53,478] 19 root - INFO - Response text convertion to audio done.
344
+ [2024-10-28 10:24:53,479] 34 root - INFO - Generated response saved as audio mp3 format.
345
+ [2024-10-28 10:24:53,482] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
346
+ [2024-10-28 10:24:53,483] 85 root - INFO - Stored text loaded.
347
+ [2024-10-28 10:24:54,525] 19 root - INFO - Response text convertion to audio done.
348
+ [2024-10-28 10:24:54,526] 24 root - INFO - Generated audio file loaded
349
+ [2024-10-28 10:24:58,202] 33 root - INFO - Created audio file removed for entry of new file.
350
+ [2024-10-28 10:25:03,916] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
351
+ [2024-10-28 10:25:03,924] 31 root - INFO - Text response generated.
352
+ [2024-10-28 10:25:04,921] 26 root - INFO - Text response generated.
353
+ [2024-10-28 10:25:05,074] 30 root - INFO - Sentiment of response generated.
354
+ [2024-10-28 10:25:05,076] 30 root - INFO - Response sentiment received.
355
+ [2024-10-28 10:25:05,719] 19 root - INFO - Response text convertion to audio done.
356
+ [2024-10-28 10:25:05,721] 34 root - INFO - Generated response saved as audio mp3 format.
357
+ [2024-10-28 10:25:05,724] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
358
+ [2024-10-28 10:25:05,726] 85 root - INFO - Stored text loaded.
359
+ [2024-10-28 10:25:06,735] 19 root - INFO - Response text convertion to audio done.
360
+ [2024-10-28 10:25:06,736] 24 root - INFO - Generated audio file loaded
361
+ [2024-10-28 10:25:09,172] 33 root - INFO - Created audio file removed for entry of new file.
362
+ [2024-10-28 10:39:40,392] 28 root - INFO - LLM model for text generation created.
363
+ [2024-10-28 10:39:43,089] 21 root - INFO - Avatar system initiated.
364
+ [2024-10-28 10:39:43,379] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
365
+ [2024-10-28 10:40:03,527] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
366
+ [2024-10-28 10:40:03,532] 31 root - INFO - Text response generated.
367
+ [2024-10-28 10:40:04,431] 26 root - INFO - Text response generated.
368
+ [2024-10-28 10:40:04,561] 30 root - INFO - Sentiment of response generated.
369
+ [2024-10-28 10:40:04,567] 30 root - INFO - Response sentiment received.
370
+ [2024-10-28 10:40:05,339] 19 root - INFO - Response text convertion to audio done.
371
+ [2024-10-28 10:40:05,339] 34 root - INFO - Generated response saved as audio mp3 format.
372
+ [2024-10-28 10:40:05,340] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
373
+ [2024-10-28 10:40:05,342] 85 root - INFO - Stored text loaded.
374
+ [2024-10-28 10:40:05,983] 19 root - INFO - Response text convertion to audio done.
375
+ [2024-10-28 10:40:05,983] 24 root - INFO - Generated audio file loaded
376
+ [2024-10-28 10:40:09,658] 33 root - INFO - Created audio file removed for entry of new file.
377
+ [2024-10-28 10:48:13,733] 28 root - INFO - LLM model for text generation created.
378
+ [2024-10-28 10:48:16,067] 21 root - INFO - Avatar system initiated.
379
+ [2024-10-28 10:48:16,320] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
380
+ [2024-10-28 10:48:27,064] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
381
+ [2024-10-28 10:48:27,077] 31 root - INFO - Text response generated.
382
+ [2024-10-28 10:48:27,954] 26 root - INFO - Text response generated.
383
+ [2024-10-28 10:48:28,132] 30 root - INFO - Sentiment of response generated.
384
+ [2024-10-28 10:48:28,139] 30 root - INFO - Response sentiment received.
385
+ [2024-10-28 10:48:28,754] 19 root - INFO - Response text convertion to audio done.
386
+ [2024-10-28 10:48:28,755] 34 root - INFO - Generated response saved as audio mp3 format.
387
+ [2024-10-28 10:48:28,759] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
388
+ [2024-10-28 10:48:28,762] 85 root - INFO - Stored text loaded.
389
+ [2024-10-28 10:49:27,387] 28 root - INFO - LLM model for text generation created.
390
+ [2024-10-28 10:49:29,792] 21 root - INFO - Avatar system initiated.
391
+ [2024-10-28 10:49:30,092] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
392
+ [2024-10-28 10:49:46,984] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
393
+ [2024-10-28 10:49:46,991] 31 root - INFO - Text response generated.
394
+ [2024-10-28 10:49:47,852] 26 root - INFO - Text response generated.
395
+ [2024-10-28 10:49:48,005] 30 root - INFO - Sentiment of response generated.
396
+ [2024-10-28 10:49:48,012] 30 root - INFO - Response sentiment received.
397
+ [2024-10-28 10:49:48,962] 19 root - INFO - Response text convertion to audio done.
398
+ [2024-10-28 10:49:48,963] 34 root - INFO - Generated response saved as audio mp3 format.
399
+ [2024-10-28 10:49:48,967] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
400
+ [2024-10-28 10:49:48,969] 85 root - INFO - Stored text loaded.
401
+ [2024-10-28 10:49:56,577] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
402
+ [2024-10-28 10:49:56,588] 31 root - INFO - Text response generated.
403
+ [2024-10-28 10:49:57,385] 26 root - INFO - Text response generated.
404
+ [2024-10-28 10:49:57,527] 30 root - INFO - Sentiment of response generated.
405
+ [2024-10-28 10:49:57,528] 30 root - INFO - Response sentiment received.
406
+ [2024-10-28 10:49:58,000] 19 root - INFO - Response text convertion to audio done.
407
+ [2024-10-28 10:49:58,001] 34 root - INFO - Generated response saved as audio mp3 format.
408
+ [2024-10-28 10:49:58,003] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
409
+ [2024-10-28 10:49:58,007] 85 root - INFO - Stored text loaded.
410
+ [2024-10-28 10:54:35,407] 28 root - INFO - LLM model for text generation created.
411
+ [2024-10-28 10:54:38,638] 21 root - INFO - Avatar system initiated.
412
+ [2024-10-28 10:54:39,090] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
413
+ [2024-10-28 10:54:56,908] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
414
+ [2024-10-28 10:54:56,918] 31 root - INFO - Text response generated.
415
+ [2024-10-28 10:54:58,330] 26 root - INFO - Text response generated.
416
+ [2024-10-28 10:54:58,497] 30 root - INFO - Sentiment of response generated.
417
+ [2024-10-28 10:54:58,502] 30 root - INFO - Response sentiment received.
418
+ [2024-10-28 10:54:59,210] 19 root - INFO - Response text convertion to audio done.
419
+ [2024-10-28 10:54:59,211] 34 root - INFO - Generated response saved as audio mp3 format.
420
+ [2024-10-28 10:54:59,215] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
421
+ [2024-10-28 10:54:59,217] 85 root - INFO - Stored text loaded.
422
+ [2024-10-28 10:55:15,825] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
423
+ [2024-10-28 10:55:15,827] 31 root - INFO - Text response generated.
424
+ [2024-10-28 10:55:16,678] 26 root - INFO - Text response generated.
425
+ [2024-10-28 10:55:16,862] 30 root - INFO - Sentiment of response generated.
426
+ [2024-10-28 10:55:16,863] 30 root - INFO - Response sentiment received.
427
+ [2024-10-28 10:55:17,396] 19 root - INFO - Response text convertion to audio done.
428
+ [2024-10-28 10:55:17,397] 34 root - INFO - Generated response saved as audio mp3 format.
429
+ [2024-10-28 10:55:17,400] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
430
+ [2024-10-28 10:55:17,403] 85 root - INFO - Stored text loaded.
431
+ [2024-10-28 10:58:03,699] 28 root - INFO - LLM model for text generation created.
432
+ [2024-10-28 10:58:06,105] 21 root - INFO - Avatar system initiated.
433
+ [2024-10-28 10:58:06,390] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
434
+ [2024-10-28 11:00:53,548] 28 root - INFO - LLM model for text generation created.
435
+ [2024-10-28 11:00:57,455] 21 root - INFO - Avatar system initiated.
436
+ [2024-10-28 11:00:57,777] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
437
+ [2024-10-28 11:01:10,980] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
438
+ [2024-10-28 11:01:11,031] 31 root - INFO - Text response generated.
439
+ [2024-10-28 11:01:11,997] 26 root - INFO - Text response generated.
440
+ [2024-10-28 11:01:12,780] 30 root - INFO - Sentiment of response generated.
441
+ [2024-10-28 11:01:12,786] 30 root - INFO - Response sentiment received.
442
+ [2024-10-28 11:01:13,447] 19 root - INFO - Response text convertion to audio done.
443
+ [2024-10-28 11:01:13,448] 34 root - INFO - Generated response saved as audio mp3 format.
444
+ [2024-10-28 11:01:13,451] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
445
+ [2024-10-28 11:01:13,454] 85 root - INFO - Stored text loaded.
446
+ [2024-10-28 11:01:22,422] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
447
+ [2024-10-28 11:01:22,438] 31 root - INFO - Text response generated.
448
+ [2024-10-28 11:01:23,369] 26 root - INFO - Text response generated.
449
+ [2024-10-28 11:01:23,519] 30 root - INFO - Sentiment of response generated.
450
+ [2024-10-28 11:01:23,521] 30 root - INFO - Response sentiment received.
451
+ [2024-10-28 11:01:24,089] 19 root - INFO - Response text convertion to audio done.
452
+ [2024-10-28 11:01:24,090] 34 root - INFO - Generated response saved as audio mp3 format.
453
+ [2024-10-28 11:01:24,093] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
454
+ [2024-10-28 11:01:24,095] 85 root - INFO - Stored text loaded.
455
+ [2024-10-28 11:02:09,637] 28 root - INFO - LLM model for text generation created.
456
+ [2024-10-28 11:02:13,195] 21 root - INFO - Avatar system initiated.
457
+ [2024-10-28 11:02:13,439] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
458
+ [2024-10-28 11:02:19,900] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
459
+ [2024-10-28 11:02:19,903] 31 root - INFO - Text response generated.
460
+ [2024-10-28 11:02:20,715] 26 root - INFO - Text response generated.
461
+ [2024-10-28 11:02:20,872] 30 root - INFO - Sentiment of response generated.
462
+ [2024-10-28 11:02:20,878] 30 root - INFO - Response sentiment received.
463
+ [2024-10-28 11:02:21,446] 19 root - INFO - Response text convertion to audio done.
464
+ [2024-10-28 11:02:21,446] 34 root - INFO - Generated response saved as audio mp3 format.
465
+ [2024-10-28 11:02:21,449] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
466
+ [2024-10-28 11:02:21,452] 85 root - INFO - Stored text loaded.
467
+ [2024-10-28 11:02:34,320] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
468
+ [2024-10-28 11:02:34,327] 31 root - INFO - Text response generated.
469
+ [2024-10-28 11:02:35,245] 26 root - INFO - Text response generated.
470
+ [2024-10-28 11:02:35,383] 30 root - INFO - Sentiment of response generated.
471
+ [2024-10-28 11:02:35,385] 30 root - INFO - Response sentiment received.
472
+ [2024-10-28 11:02:36,052] 19 root - INFO - Response text convertion to audio done.
473
+ [2024-10-28 11:02:36,052] 34 root - INFO - Generated response saved as audio mp3 format.
474
+ [2024-10-28 11:02:36,055] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
475
+ [2024-10-28 11:02:36,057] 85 root - INFO - Stored text loaded.
476
+ [2024-10-28 11:04:03,566] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
477
+ [2024-10-28 11:04:04,179] 19 root - INFO - Response text convertion to audio done.
478
+ [2024-10-28 11:04:04,181] 24 root - INFO - Generated audio file loaded
479
+ [2024-10-28 11:04:07,234] 33 root - INFO - Created audio file removed for entry of new file.
480
+ [2024-10-28 11:06:52,570] 28 root - INFO - LLM model for text generation created.
481
+ [2024-10-28 11:06:54,575] 21 root - INFO - Avatar system initiated.
482
+ [2024-10-28 11:06:54,851] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
483
+ [2024-10-28 11:07:08,865] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
484
+ [2024-10-28 11:07:08,878] 31 root - INFO - Text response generated.
485
+ [2024-10-28 11:07:09,795] 26 root - INFO - Text response generated.
486
+ [2024-10-28 11:07:09,969] 30 root - INFO - Sentiment of response generated.
487
+ [2024-10-28 11:07:09,975] 30 root - INFO - Response sentiment received.
488
+ [2024-10-28 11:07:10,601] 19 root - INFO - Response text convertion to audio done.
489
+ [2024-10-28 11:07:10,602] 34 root - INFO - Generated response saved as audio mp3 format.
490
+ [2024-10-28 11:07:10,607] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
491
+ [2024-10-28 11:07:10,608] 85 root - INFO - Stored text loaded.
492
+ [2024-10-28 11:07:21,515] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
493
+ [2024-10-28 11:07:21,538] 31 root - INFO - Text response generated.
494
+ [2024-10-28 11:07:22,399] 26 root - INFO - Text response generated.
495
+ [2024-10-28 11:07:22,497] 30 root - INFO - Sentiment of response generated.
496
+ [2024-10-28 11:07:22,499] 30 root - INFO - Response sentiment received.
497
+ [2024-10-28 11:07:23,077] 19 root - INFO - Response text convertion to audio done.
498
+ [2024-10-28 11:07:23,078] 34 root - INFO - Generated response saved as audio mp3 format.
499
+ [2024-10-28 11:07:23,079] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
500
+ [2024-10-28 11:07:23,080] 85 root - INFO - Stored text loaded.
501
+ [2024-10-28 11:10:50,289] 28 root - INFO - LLM model for text generation created.
502
+ [2024-10-28 11:10:52,172] 21 root - INFO - Avatar system initiated.
503
+ [2024-10-28 11:10:52,454] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
504
+ [2024-10-28 11:13:03,251] 28 root - INFO - LLM model for text generation created.
505
+ [2024-10-28 11:13:05,720] 21 root - INFO - Avatar system initiated.
506
+ [2024-10-28 11:13:05,963] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
507
+ [2024-10-28 11:13:14,187] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
508
+ [2024-10-28 11:13:14,190] 31 root - INFO - Text response generated.
509
+ [2024-10-28 11:13:14,934] 26 root - INFO - Text response generated.
510
+ [2024-10-28 11:13:15,055] 30 root - INFO - Sentiment of response generated.
511
+ [2024-10-28 11:13:15,060] 30 root - INFO - Response sentiment received.
512
+ [2024-10-28 11:13:15,538] 19 root - INFO - Response text convertion to audio done.
513
+ [2024-10-28 11:13:15,538] 34 root - INFO - Generated response saved as audio mp3 format.
514
+ [2024-10-28 11:13:15,539] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
515
+ [2024-10-28 11:13:15,540] 85 root - INFO - Stored text loaded.
516
+ [2024-10-28 11:13:31,895] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
517
+ [2024-10-28 11:13:31,899] 31 root - INFO - Text response generated.
518
+ [2024-10-28 11:13:32,704] 26 root - INFO - Text response generated.
519
+ [2024-10-28 11:13:32,794] 30 root - INFO - Sentiment of response generated.
520
+ [2024-10-28 11:13:32,795] 30 root - INFO - Response sentiment received.
521
+ [2024-10-28 11:13:33,571] 19 root - INFO - Response text convertion to audio done.
522
+ [2024-10-28 11:13:33,572] 34 root - INFO - Generated response saved as audio mp3 format.
523
+ [2024-10-28 11:13:33,574] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
524
+ [2024-10-28 11:13:33,576] 85 root - INFO - Stored text loaded.
525
+ [2024-10-28 11:15:23,265] 28 root - INFO - LLM model for text generation created.
526
+ [2024-10-28 11:15:25,033] 21 root - INFO - Avatar system initiated.
527
+ [2024-10-28 11:15:25,300] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
528
+ [2024-10-28 11:20:14,415] 28 root - INFO - LLM model for text generation created.
529
+ [2024-10-28 11:20:16,568] 21 root - INFO - Avatar system initiated.
530
+ [2024-10-28 11:20:16,839] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
531
+ [2024-10-28 11:20:25,530] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
532
+ [2024-10-28 11:20:25,532] 31 root - INFO - Text response generated.
533
+ [2024-10-28 11:20:26,370] 26 root - INFO - Text response generated.
534
+ [2024-10-28 11:20:26,482] 30 root - INFO - Sentiment of response generated.
535
+ [2024-10-28 11:20:26,487] 30 root - INFO - Response sentiment received.
536
+ [2024-10-28 11:20:26,968] 19 root - INFO - Response text convertion to audio done.
537
+ [2024-10-28 11:20:26,968] 34 root - INFO - Generated response saved as audio mp3 format.
538
+ [2024-10-28 11:20:26,970] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
539
+ [2024-10-28 11:20:26,970] 85 root - INFO - Stored text loaded.
540
+ [2024-10-28 11:20:32,615] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
541
+ [2024-10-28 11:21:57,204] 28 root - INFO - LLM model for text generation created.
542
+ [2024-10-28 11:21:59,784] 21 root - INFO - Avatar system initiated.
543
+ [2024-10-28 11:22:00,030] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
544
+ [2024-10-28 11:22:07,005] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
545
+ [2024-10-28 11:22:07,008] 31 root - INFO - Text response generated.
546
+ [2024-10-28 11:22:07,814] 26 root - INFO - Text response generated.
547
+ [2024-10-28 11:22:07,938] 30 root - INFO - Sentiment of response generated.
548
+ [2024-10-28 11:22:07,944] 30 root - INFO - Response sentiment received.
549
+ [2024-10-28 11:22:08,435] 19 root - INFO - Response text convertion to audio done.
550
+ [2024-10-28 11:22:08,436] 34 root - INFO - Generated response saved as audio mp3 format.
551
+ [2024-10-28 11:22:08,439] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
552
+ [2024-10-28 11:22:08,440] 85 root - INFO - Stored text loaded.
553
+ [2024-10-28 11:22:08,940] 19 root - INFO - Response text convertion to audio done.
554
+ [2024-10-28 11:22:08,941] 24 root - INFO - Generated audio file loaded
555
+ [2024-10-28 11:22:11,392] 33 root - INFO - Created audio file removed for entry of new file.
556
+ [2024-10-28 11:22:15,775] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
557
+ [2024-10-28 11:35:40,310] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
558
+ [2024-10-28 11:35:49,292] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
559
+ [2024-10-28 11:35:49,305] 31 root - INFO - Text response generated.
560
+ [2024-10-28 11:35:50,311] 26 root - INFO - Text response generated.
561
+ [2024-10-28 11:35:50,450] 30 root - INFO - Sentiment of response generated.
562
+ [2024-10-28 11:35:50,451] 30 root - INFO - Response sentiment received.
563
+ [2024-10-28 11:35:51,242] 19 root - INFO - Response text convertion to audio done.
564
+ [2024-10-28 11:35:51,243] 34 root - INFO - Generated response saved as audio mp3 format.
565
+ [2024-10-28 11:35:51,246] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
566
+ [2024-10-28 11:35:51,247] 85 root - INFO - Stored text loaded.
567
+ [2024-10-28 11:35:51,913] 19 root - INFO - Response text convertion to audio done.
568
+ [2024-10-28 11:35:51,953] 24 root - INFO - Generated audio file loaded
569
+ [2024-10-28 11:35:55,630] 33 root - INFO - Created audio file removed for entry of new file.
570
+ [2024-10-28 11:36:15,823] 28 root - INFO - LLM model for text generation created.
571
+ [2024-10-28 11:36:19,874] 21 root - INFO - Avatar system initiated.
572
+ [2024-10-28 11:36:20,188] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
573
+ [2024-10-28 11:36:20,198] 31 root - INFO - Text response generated.
574
+ [2024-10-28 11:36:22,971] 26 root - INFO - Text response generated.
575
+ [2024-10-28 11:36:23,064] 30 root - INFO - Sentiment of response generated.
576
+ [2024-10-28 11:36:23,065] 30 root - INFO - Response sentiment received.
577
+ [2024-10-28 11:36:23,553] 19 root - INFO - Response text convertion to audio done.
578
+ [2024-10-28 11:36:23,554] 34 root - INFO - Generated response saved as audio mp3 format.
579
+ [2024-10-28 11:36:23,558] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
580
+ [2024-10-28 11:36:23,560] 85 root - INFO - Stored text loaded.
581
+ [2024-10-28 11:47:50,337] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
582
+ [2024-10-28 11:47:50,904] 19 root - INFO - Response text convertion to audio done.
583
+ [2024-10-28 11:47:50,905] 24 root - INFO - Generated audio file loaded
584
+ [2024-10-28 11:47:53,965] 33 root - INFO - Created audio file removed for entry of new file.
585
+ [2024-10-28 11:53:27,639] 28 root - INFO - LLM model for text generation created.
586
+ [2024-10-28 11:53:30,800] 21 root - INFO - Avatar system initiated.
587
+ [2024-10-28 11:53:31,501] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
588
+ [2024-10-28 11:53:39,179] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
589
+ [2024-10-28 11:53:39,191] 31 root - INFO - Text response generated.
590
+ [2024-10-28 11:53:41,309] 26 root - INFO - Text response generated.
591
+ [2024-10-28 11:53:41,437] 30 root - INFO - Sentiment of response generated.
592
+ [2024-10-28 11:53:41,438] 30 root - INFO - Response sentiment received.
593
+ [2024-10-28 11:53:41,981] 19 root - INFO - Response text convertion to audio done.
594
+ [2024-10-28 11:53:41,982] 34 root - INFO - Generated response saved as audio mp3 format.
595
+ [2024-10-28 11:53:41,986] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
596
+ [2024-10-28 11:53:41,988] 85 root - INFO - Stored text loaded.
597
+ [2024-10-28 11:53:52,763] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
598
+ [2024-10-28 11:53:52,774] 31 root - INFO - Text response generated.
599
+ [2024-10-28 11:53:53,701] 26 root - INFO - Text response generated.
600
+ [2024-10-28 11:53:53,833] 30 root - INFO - Sentiment of response generated.
601
+ [2024-10-28 11:53:53,835] 30 root - INFO - Response sentiment received.
602
+ [2024-10-28 11:53:54,390] 19 root - INFO - Response text convertion to audio done.
603
+ [2024-10-28 11:53:54,391] 34 root - INFO - Generated response saved as audio mp3 format.
604
+ [2024-10-28 11:53:54,395] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
605
+ [2024-10-28 11:53:54,397] 85 root - INFO - Stored text loaded.
606
+ [2024-10-28 11:54:06,348] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
607
+ [2024-10-28 11:54:06,980] 19 root - INFO - Response text convertion to audio done.
608
+ [2024-10-28 11:54:06,982] 24 root - INFO - Generated audio file loaded
609
+ [2024-10-28 11:54:10,038] 33 root - INFO - Created audio file removed for entry of new file.
610
+ [2024-10-28 11:54:10,038] 31 root - INFO - Text response generated.
611
+ [2024-10-28 11:54:12,745] 26 root - INFO - Text response generated.
612
+ [2024-10-28 11:54:12,969] 30 root - INFO - Sentiment of response generated.
613
+ [2024-10-28 11:54:12,970] 30 root - INFO - Response sentiment received.
614
+ [2024-10-28 11:54:18,313] 19 root - INFO - Response text convertion to audio done.
615
+ [2024-10-28 11:54:18,313] 34 root - INFO - Generated response saved as audio mp3 format.
616
+ [2024-10-28 11:54:18,317] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
617
+ [2024-10-28 11:54:18,318] 85 root - INFO - Stored text loaded.
618
+ [2024-10-28 11:55:10,400] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
619
+ [2024-10-28 11:55:10,914] 19 root - INFO - Response text convertion to audio done.
620
+ [2024-10-28 11:55:10,916] 24 root - INFO - Generated audio file loaded
621
+ [2024-10-28 11:55:13,958] 33 root - INFO - Created audio file removed for entry of new file.
622
+ [2024-10-28 11:55:13,958] 31 root - INFO - Text response generated.
623
+ [2024-10-28 11:55:15,823] 26 root - INFO - Text response generated.
624
+ [2024-10-28 11:55:15,996] 30 root - INFO - Sentiment of response generated.
625
+ [2024-10-28 11:55:15,996] 30 root - INFO - Response sentiment received.
626
+ [2024-10-28 11:55:20,569] 19 root - INFO - Response text convertion to audio done.
627
+ [2024-10-28 11:55:20,570] 34 root - INFO - Generated response saved as audio mp3 format.
628
+ [2024-10-28 11:55:20,572] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
629
+ [2024-10-28 11:55:20,574] 85 root - INFO - Stored text loaded.
630
+ [2024-10-28 11:56:08,386] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
631
+ [2024-10-28 11:56:09,031] 19 root - INFO - Response text convertion to audio done.
632
+ [2024-10-28 11:56:09,032] 24 root - INFO - Generated audio file loaded
633
+ [2024-10-28 11:56:12,078] 33 root - INFO - Created audio file removed for entry of new file.
634
+ [2024-10-28 11:56:34,570] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
635
+ [2024-10-28 11:56:49,531] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
636
+ [2024-10-28 11:59:23,019] 28 root - INFO - LLM model for text generation created.
637
+ [2024-10-28 11:59:25,994] 21 root - INFO - Avatar system initiated.
638
+ [2024-10-28 11:59:26,293] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
639
+ [2024-10-28 12:01:08,119] 28 root - INFO - LLM model for text generation created.
640
+ [2024-10-28 12:01:10,732] 21 root - INFO - Avatar system initiated.
641
+ [2024-10-28 12:01:11,020] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
642
+ [2024-10-28 12:06:58,110] 28 root - INFO - LLM model for text generation created.
643
+ [2024-10-28 12:07:01,777] 21 root - INFO - Avatar system initiated.
644
+ [2024-10-28 12:07:02,080] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
645
+ [2024-10-28 12:16:48,467] 28 root - INFO - LLM model for text generation created.
646
+ [2024-10-28 12:16:51,277] 21 root - INFO - Avatar system initiated.
647
+ [2024-10-28 12:16:51,604] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
648
+ [2024-10-28 12:18:32,184] 28 root - INFO - LLM model for text generation created.
649
+ [2024-10-28 12:18:36,745] 21 root - INFO - Avatar system initiated.
650
+ [2024-10-28 12:18:57,492] 28 root - INFO - LLM model for text generation created.
651
+ [2024-10-28 12:19:01,866] 21 root - INFO - Avatar system initiated.
652
+ [2024-10-28 12:19:02,175] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
653
+ [2024-10-28 12:19:49,476] 28 root - INFO - LLM model for text generation created.
654
+ [2024-10-28 12:19:52,476] 21 root - INFO - Avatar system initiated.
655
+ [2024-10-28 12:19:52,803] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
656
+ [2024-10-28 12:20:05,542] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
657
+ [2024-10-28 12:20:05,554] 31 root - INFO - Text response generated.
658
+ [2024-10-28 12:20:06,557] 26 root - INFO - Text response generated.
659
+ [2024-10-28 12:20:07,280] 30 root - INFO - Sentiment of response generated.
660
+ [2024-10-28 12:20:07,286] 30 root - INFO - Response sentiment received.
661
+ [2024-10-28 12:20:08,126] 19 root - INFO - Response text convertion to audio done.
662
+ [2024-10-28 12:20:08,126] 34 root - INFO - Generated response saved as audio mp3 format.
663
+ [2024-10-28 12:20:08,128] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
664
+ [2024-10-28 12:20:08,130] 85 root - INFO - Stored text loaded.
665
+ [2024-10-28 12:20:27,771] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
666
+ [2024-10-28 12:20:27,777] 31 root - INFO - Text response generated.
667
+ [2024-10-28 12:20:28,766] 26 root - INFO - Text response generated.
668
+ [2024-10-28 12:20:28,936] 30 root - INFO - Sentiment of response generated.
669
+ [2024-10-28 12:20:28,937] 30 root - INFO - Response sentiment received.
670
+ [2024-10-28 12:20:29,415] 19 root - INFO - Response text convertion to audio done.
671
+ [2024-10-28 12:20:29,416] 34 root - INFO - Generated response saved as audio mp3 format.
672
+ [2024-10-28 12:20:29,419] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
673
+ [2024-10-28 12:20:29,419] 85 root - INFO - Stored text loaded.
674
+ [2024-10-28 12:21:46,735] 28 root - INFO - LLM model for text generation created.
675
+ [2024-10-28 12:21:50,849] 21 root - INFO - Avatar system initiated.
676
+ [2024-10-28 12:21:51,224] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
677
+ [2024-10-28 12:22:01,767] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
678
+ [2024-10-28 12:22:01,774] 31 root - INFO - Text response generated.
679
+ [2024-10-28 12:22:02,735] 26 root - INFO - Text response generated.
680
+ [2024-10-28 12:22:02,889] 30 root - INFO - Sentiment of response generated.
681
+ [2024-10-28 12:22:02,895] 30 root - INFO - Response sentiment received.
682
+ [2024-10-28 12:22:03,379] 19 root - INFO - Response text convertion to audio done.
683
+ [2024-10-28 12:22:03,379] 34 root - INFO - Generated response saved as audio mp3 format.
684
+ [2024-10-28 12:22:03,383] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
685
+ [2024-10-28 12:22:03,386] 85 root - INFO - Stored text loaded.
686
+ [2024-10-28 12:22:22,138] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
687
+ [2024-10-28 12:22:22,150] 31 root - INFO - Text response generated.
688
+ [2024-10-28 12:22:23,158] 26 root - INFO - Text response generated.
689
+ [2024-10-28 12:22:23,300] 30 root - INFO - Sentiment of response generated.
690
+ [2024-10-28 12:22:23,303] 30 root - INFO - Response sentiment received.
691
+ [2024-10-28 12:22:23,828] 19 root - INFO - Response text convertion to audio done.
692
+ [2024-10-28 12:22:23,829] 34 root - INFO - Generated response saved as audio mp3 format.
693
+ [2024-10-28 12:22:23,833] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
694
+ [2024-10-28 12:22:23,835] 85 root - INFO - Stored text loaded.
695
+ [2024-10-28 12:22:42,720] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
696
+ [2024-10-28 12:22:42,735] 31 root - INFO - Text response generated.
697
+ [2024-10-28 12:22:44,044] 26 root - INFO - Text response generated.
698
+ [2024-10-28 12:22:44,111] 30 root - INFO - Sentiment of response generated.
699
+ [2024-10-28 12:22:44,113] 30 root - INFO - Response sentiment received.
700
+ [2024-10-28 12:22:44,616] 19 root - INFO - Response text convertion to audio done.
701
+ [2024-10-28 12:22:44,617] 34 root - INFO - Generated response saved as audio mp3 format.
702
+ [2024-10-28 12:22:44,621] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
703
+ [2024-10-28 12:22:44,623] 85 root - INFO - Stored text loaded.
704
+ [2024-10-28 12:23:21,135] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
705
+ [2024-10-28 12:23:21,184] 31 root - INFO - Text response generated.
706
+ [2024-10-28 12:23:24,017] 26 root - INFO - Text response generated.
707
+ [2024-10-28 12:23:24,170] 30 root - INFO - Sentiment of response generated.
708
+ [2024-10-28 12:23:24,170] 30 root - INFO - Response sentiment received.
709
+ [2024-10-28 12:23:27,718] 19 root - INFO - Response text convertion to audio done.
710
+ [2024-10-28 12:23:27,718] 34 root - INFO - Generated response saved as audio mp3 format.
711
+ [2024-10-28 12:23:27,721] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
712
+ [2024-10-28 12:23:27,722] 85 root - INFO - Stored text loaded.
713
+ [2024-10-28 12:25:07,637] 28 root - INFO - LLM model for text generation created.
714
+ [2024-10-28 12:25:12,148] 21 root - INFO - Avatar system initiated.
715
+ [2024-10-28 12:25:12,542] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
716
+ [2024-10-28 12:25:32,228] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
717
+ [2024-10-28 12:25:32,242] 31 root - INFO - Text response generated.
718
+ [2024-10-28 12:25:33,312] 26 root - INFO - Text response generated.
719
+ [2024-10-28 12:25:33,635] 30 root - INFO - Sentiment of response generated.
720
+ [2024-10-28 12:25:33,643] 30 root - INFO - Response sentiment received.
721
+ [2024-10-28 12:25:37,826] 19 root - INFO - Response text convertion to audio done.
722
+ [2024-10-28 12:25:37,827] 34 root - INFO - Generated response saved as audio mp3 format.
723
+ [2024-10-28 12:25:37,830] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
724
+ [2024-10-28 12:25:37,833] 85 root - INFO - Stored text loaded.
725
+ [2024-10-28 12:26:03,252] 28 root - INFO - LLM model for text generation created.
726
+ [2024-10-28 12:26:06,812] 21 root - INFO - Avatar system initiated.
727
+ [2024-10-28 12:26:07,111] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
728
+ [2024-10-28 12:26:19,190] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
729
+ [2024-10-28 12:26:19,197] 31 root - INFO - Text response generated.
730
+ [2024-10-28 12:26:20,109] 26 root - INFO - Text response generated.
731
+ [2024-10-28 12:26:20,403] 30 root - INFO - Sentiment of response generated.
732
+ [2024-10-28 12:26:20,411] 30 root - INFO - Response sentiment received.
733
+ [2024-10-28 12:26:23,763] 19 root - INFO - Response text convertion to audio done.
734
+ [2024-10-28 12:26:23,764] 34 root - INFO - Generated response saved as audio mp3 format.
735
+ [2024-10-28 12:26:23,766] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
736
+ [2024-10-28 12:26:23,766] 85 root - INFO - Stored text loaded.
737
+ [2024-10-28 12:26:54,461] 28 root - INFO - LLM model for text generation created.
738
+ [2024-10-28 12:26:58,384] 21 root - INFO - Avatar system initiated.
739
+ [2024-10-28 12:26:58,734] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
740
+ [2024-10-28 12:27:12,886] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
741
+ [2024-10-28 12:27:12,897] 31 root - INFO - Text response generated.
742
+ [2024-10-28 12:27:13,969] 26 root - INFO - Text response generated.
743
+ [2024-10-28 12:27:14,260] 30 root - INFO - Sentiment of response generated.
744
+ [2024-10-28 12:27:14,270] 30 root - INFO - Response sentiment received.
745
+ [2024-10-28 12:27:17,982] 19 root - INFO - Response text convertion to audio done.
746
+ [2024-10-28 12:27:17,983] 34 root - INFO - Generated response saved as audio mp3 format.
747
+ [2024-10-28 12:27:17,987] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
748
+ [2024-10-28 12:27:17,989] 85 root - INFO - Stored text loaded.
749
+ [2024-10-28 12:28:28,430] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
750
+ [2024-10-28 12:28:28,447] 31 root - INFO - Text response generated.
751
+ [2024-10-28 12:28:31,077] 26 root - INFO - Text response generated.
752
+ [2024-10-28 12:28:31,406] 30 root - INFO - Sentiment of response generated.
753
+ [2024-10-28 12:28:31,408] 30 root - INFO - Response sentiment received.
754
+ [2024-10-28 12:28:38,298] 19 root - INFO - Response text convertion to audio done.
755
+ [2024-10-28 12:28:38,298] 34 root - INFO - Generated response saved as audio mp3 format.
756
+ [2024-10-28 12:28:38,300] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
757
+ [2024-10-28 12:28:38,301] 85 root - INFO - Stored text loaded.
758
+ [2024-10-28 12:29:06,489] 28 root - INFO - LLM model for text generation created.
759
+ [2024-10-28 12:29:08,889] 21 root - INFO - Avatar system initiated.
760
+ [2024-10-28 12:29:09,195] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
761
+ [2024-10-28 12:29:19,390] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
762
+ [2024-10-28 12:29:19,403] 31 root - INFO - Text response generated.
763
+ [2024-10-28 12:29:21,610] 26 root - INFO - Text response generated.
764
+ [2024-10-28 12:29:21,989] 30 root - INFO - Sentiment of response generated.
765
+ [2024-10-28 12:29:21,997] 30 root - INFO - Response sentiment received.
766
+ [2024-10-28 12:29:31,825] 19 root - INFO - Response text convertion to audio done.
767
+ [2024-10-28 12:29:31,825] 34 root - INFO - Generated response saved as audio mp3 format.
768
+ [2024-10-28 12:29:31,828] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
769
+ [2024-10-28 12:29:31,829] 85 root - INFO - Stored text loaded.
770
+ [2024-10-28 12:29:54,152] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
771
+ [2024-10-28 12:29:54,180] 31 root - INFO - Text response generated.
772
+ [2024-10-28 12:29:55,251] 26 root - INFO - Text response generated.
773
+ [2024-10-28 12:29:55,350] 30 root - INFO - Sentiment of response generated.
774
+ [2024-10-28 12:29:55,354] 30 root - INFO - Response sentiment received.
775
+ [2024-10-28 12:29:55,894] 19 root - INFO - Response text convertion to audio done.
776
+ [2024-10-28 12:29:55,894] 34 root - INFO - Generated response saved as audio mp3 format.
777
+ [2024-10-28 12:29:55,898] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
778
+ [2024-10-28 12:29:55,900] 85 root - INFO - Stored text loaded.
779
+ [2024-10-28 12:34:15,000] 28 root - INFO - LLM model for text generation created.
780
+ [2024-10-28 12:34:18,525] 21 root - INFO - Avatar system initiated.
781
+ [2024-10-28 12:34:18,813] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
782
+ [2024-10-28 12:34:51,100] 28 root - INFO - LLM model for text generation created.
783
+ [2024-10-28 12:34:53,887] 21 root - INFO - Avatar system initiated.
784
+ [2024-10-28 12:34:54,271] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
785
+ [2024-10-28 12:35:36,136] 28 root - INFO - LLM model for text generation created.
786
+ [2024-10-28 12:35:39,011] 21 root - INFO - Avatar system initiated.
787
+ [2024-10-28 12:35:39,310] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
788
+ [2024-10-28 12:36:25,097] 28 root - INFO - LLM model for text generation created.
789
+ [2024-10-28 12:36:28,629] 21 root - INFO - Avatar system initiated.
790
+ [2024-10-28 12:36:28,936] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
791
+ [2024-10-28 12:36:43,444] 28 root - INFO - LLM model for text generation created.
792
+ [2024-10-28 12:36:48,133] 21 root - INFO - Avatar system initiated.
793
+ [2024-10-28 12:36:48,543] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
794
+ [2024-10-28 12:37:36,090] 28 root - INFO - LLM model for text generation created.
795
+ [2024-10-28 12:37:40,338] 21 root - INFO - Avatar system initiated.
796
+ [2024-10-28 12:37:40,677] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
797
+ [2024-10-28 12:38:10,358] 28 root - INFO - LLM model for text generation created.
798
+ [2024-10-28 12:38:12,818] 21 root - INFO - Avatar system initiated.
799
+ [2024-10-28 12:38:13,224] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
800
+ [2024-10-28 12:40:11,970] 28 root - INFO - LLM model for text generation created.
801
+ [2024-10-28 12:40:15,829] 21 root - INFO - Avatar system initiated.
802
+ [2024-10-28 12:40:16,206] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
803
+ [2024-10-28 12:40:44,879] 28 root - INFO - LLM model for text generation created.
804
+ [2024-10-28 12:40:48,800] 21 root - INFO - Avatar system initiated.
805
+ [2024-10-28 12:40:49,527] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
logs/10_29_2024_17_02_09.log ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [2024-10-29 17:02:11,992] 28 root - INFO - LLM model for text generation created.
2
+ [2024-10-29 17:02:25,428] 21 root - INFO - Avatar system initiated.
3
+ [2024-10-29 17:03:34,883] 28 root - INFO - LLM model for text generation created.
4
+ [2024-10-29 17:03:37,360] 21 root - INFO - Avatar system initiated.
5
+ [2024-10-29 17:05:30,190] 28 root - INFO - LLM model for text generation created.
6
+ [2024-10-29 17:05:32,310] 21 root - INFO - Avatar system initiated.
7
+ [2024-10-29 17:07:05,582] 28 root - INFO - LLM model for text generation created.
8
+ [2024-10-29 17:07:07,815] 21 root - INFO - Avatar system initiated.
9
+ [2024-10-29 17:08:01,673] 28 root - INFO - LLM model for text generation created.
10
+ [2024-10-29 17:08:03,802] 21 root - INFO - Avatar system initiated.
11
+ [2024-10-29 17:08:32,726] 28 root - INFO - LLM model for text generation created.
12
+ [2024-10-29 17:08:35,275] 21 root - INFO - Avatar system initiated.
13
+ [2024-10-29 17:09:47,927] 31 root - INFO - Text response generated.
14
+ [2024-10-29 17:09:49,900] 26 root - INFO - Text response generated.
15
+ [2024-10-29 17:09:50,825] 30 root - INFO - Sentiment of response generated.
16
+ [2024-10-29 17:09:50,833] 30 root - INFO - Response sentiment received.
17
+ [2024-10-29 17:09:51,545] 19 root - INFO - Response text convertion to audio done.
18
+ [2024-10-29 17:09:51,546] 34 root - INFO - Generated response saved as audio mp3 format.
19
+ [2024-10-29 17:09:51,550] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
20
+ [2024-10-29 17:09:51,552] 85 root - INFO - Stored text loaded.
21
+ [2024-10-29 17:09:56,834] 31 root - INFO - Text response generated.
22
+ [2024-10-29 17:09:58,322] 26 root - INFO - Text response generated.
23
+ [2024-10-29 17:09:58,565] 30 root - INFO - Sentiment of response generated.
24
+ [2024-10-29 17:09:58,566] 30 root - INFO - Response sentiment received.
25
+ [2024-10-29 17:10:00,697] 19 root - INFO - Response text convertion to audio done.
26
+ [2024-10-29 17:10:00,698] 34 root - INFO - Generated response saved as audio mp3 format.
27
+ [2024-10-29 17:10:00,699] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
28
+ [2024-10-29 17:10:00,700] 85 root - INFO - Stored text loaded.
29
+ [2024-10-29 17:10:05,247] 31 root - INFO - Text response generated.
30
+ [2024-10-29 17:10:05,562] 26 root - INFO - Text response generated.
31
+ [2024-10-29 17:10:05,646] 30 root - INFO - Sentiment of response generated.
32
+ [2024-10-29 17:10:05,646] 30 root - INFO - Response sentiment received.
33
+ [2024-10-29 17:10:06,393] 19 root - INFO - Response text convertion to audio done.
34
+ [2024-10-29 17:10:06,394] 34 root - INFO - Generated response saved as audio mp3 format.
35
+ [2024-10-29 17:10:06,397] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
36
+ [2024-10-29 17:10:06,401] 85 root - INFO - Stored text loaded.
37
+ [2024-10-29 17:10:10,982] 31 root - INFO - Text response generated.
38
+ [2024-10-29 17:10:11,700] 26 root - INFO - Text response generated.
39
+ [2024-10-29 17:10:11,805] 30 root - INFO - Sentiment of response generated.
40
+ [2024-10-29 17:10:11,807] 30 root - INFO - Response sentiment received.
41
+ [2024-10-29 17:10:12,283] 19 root - INFO - Response text convertion to audio done.
42
+ [2024-10-29 17:10:12,284] 34 root - INFO - Generated response saved as audio mp3 format.
43
+ [2024-10-29 17:10:12,287] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
44
+ [2024-10-29 17:10:12,288] 85 root - INFO - Stored text loaded.
45
+ [2024-10-29 17:10:20,388] 31 root - INFO - Text response generated.
46
+ [2024-10-29 17:10:20,720] 26 root - INFO - Text response generated.
47
+ [2024-10-29 17:10:20,799] 30 root - INFO - Sentiment of response generated.
48
+ [2024-10-29 17:10:20,800] 30 root - INFO - Response sentiment received.
49
+ [2024-10-29 17:10:23,668] 19 root - INFO - Response text convertion to audio done.
50
+ [2024-10-29 17:10:23,668] 34 root - INFO - Generated response saved as audio mp3 format.
51
+ [2024-10-29 17:10:23,670] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
52
+ [2024-10-29 17:10:23,670] 85 root - INFO - Stored text loaded.
53
+ [2024-10-29 17:10:50,185] 31 root - INFO - Text response generated.
54
+ [2024-10-29 17:10:52,359] 26 root - INFO - Text response generated.
55
+ [2024-10-29 17:10:52,476] 30 root - INFO - Sentiment of response generated.
56
+ [2024-10-29 17:10:52,477] 30 root - INFO - Response sentiment received.
57
+ [2024-10-29 17:10:55,091] 19 root - INFO - Response text convertion to audio done.
58
+ [2024-10-29 17:10:55,093] 34 root - INFO - Generated response saved as audio mp3 format.
59
+ [2024-10-29 17:10:55,096] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
60
+ [2024-10-29 17:10:55,098] 85 root - INFO - Stored text loaded.
61
+ [2024-10-29 17:11:00,429] 31 root - INFO - Text response generated.
62
+ [2024-10-29 17:11:00,783] 26 root - INFO - Text response generated.
63
+ [2024-10-29 17:11:00,874] 30 root - INFO - Sentiment of response generated.
64
+ [2024-10-29 17:11:00,875] 30 root - INFO - Response sentiment received.
65
+ [2024-10-29 17:11:03,057] 19 root - INFO - Response text convertion to audio done.
66
+ [2024-10-29 17:11:03,057] 34 root - INFO - Generated response saved as audio mp3 format.
67
+ [2024-10-29 17:11:03,062] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
68
+ [2024-10-29 17:11:03,065] 85 root - INFO - Stored text loaded.
logs/10_29_2024_19_35_21.log ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [2024-10-29 19:35:24,577] 28 root - INFO - LLM model for text generation created.
2
+ [2024-10-29 19:35:34,032] 21 root - INFO - Avatar system initiated.
3
+ [2024-10-29 20:20:31,489] 28 root - INFO - LLM model for text generation created.
4
+ [2024-10-29 20:20:31,499] 27 root - INFO - LLM model for medical text generation created.
5
+ [2024-10-29 20:20:35,379] 23 root - INFO - Avatar system initiated.
6
+ [2024-10-29 20:22:50,591] 28 root - INFO - LLM model for text generation created.
7
+ [2024-10-29 20:22:50,592] 27 root - INFO - LLM model for medical text generation created.
8
+ [2024-10-29 20:22:53,179] 23 root - INFO - Avatar system initiated.
9
+ [2024-10-29 20:24:23,130] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
10
+ [2024-10-29 20:25:48,027] 28 root - INFO - LLM model for text generation created.
11
+ [2024-10-29 20:25:48,030] 27 root - INFO - LLM model for medical text generation created.
12
+ [2024-10-29 20:25:50,533] 23 root - INFO - Avatar system initiated.
13
+ [2024-10-29 20:25:50,778] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
14
+ [2024-10-29 20:25:51,064] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
15
+ [2024-10-29 20:26:01,186] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
16
+ [2024-10-29 20:26:01,599] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
17
+ [2024-10-29 20:26:01,616] 30 root - INFO - Text response generated.
18
+ [2024-10-29 20:30:20,701] 28 root - INFO - LLM model for text generation created.
19
+ [2024-10-29 20:30:20,708] 28 root - INFO - LLM model for medical text generation created.
20
+ [2024-10-29 20:30:24,631] 23 root - INFO - Avatar system initiated.
21
+ [2024-10-29 20:30:24,874] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
22
+ [2024-10-29 20:30:25,220] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
23
+ [2024-10-29 20:30:50,153] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
24
+ [2024-10-29 20:30:50,468] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
25
+ [2024-10-29 20:30:50,499] 31 root - INFO - Text response generated.
26
+ [2024-10-29 20:37:01,077] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
27
+ [2024-10-29 20:37:01,489] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
28
+ [2024-10-29 20:37:01,502] 31 root - INFO - Text response generated.
29
+ [2024-10-29 20:37:01,518] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
30
+ [2024-10-29 20:37:01,898] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
31
+ [2024-10-29 20:50:35,743] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
32
+ [2024-10-29 20:50:38,430] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
33
+ [2024-10-29 20:50:38,456] 31 root - INFO - Text response generated.
34
+ [2024-10-29 20:53:10,924] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
35
+ [2024-10-29 20:53:12,083] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
36
+ [2024-10-29 20:53:44,835] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
37
+ [2024-10-29 20:53:45,520] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
38
+ [2024-10-29 20:54:49,338] 28 root - INFO - LLM model for text generation created.
39
+ [2024-10-29 20:54:49,341] 28 root - INFO - LLM model for medical text generation created.
40
+ [2024-10-29 20:54:53,388] 23 root - INFO - Avatar system initiated.
41
+ [2024-10-29 20:54:53,736] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
42
+ [2024-10-29 20:54:54,161] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
43
+ [2024-10-29 20:55:15,113] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
44
+ [2024-10-29 20:55:15,763] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
45
+ [2024-10-29 20:55:15,782] 31 root - INFO - Text response generated.
46
+ [2024-10-29 20:55:23,696] 32 root - INFO - Text response generated.
47
+ [2024-10-29 20:55:26,213] 30 root - INFO - Sentiment of response generated.
48
+ [2024-10-29 20:55:26,222] 36 root - INFO - Response sentiment received.
49
+ [2024-10-29 20:55:38,494] 19 root - INFO - Response text convertion to audio done.
50
+ [2024-10-29 20:55:38,494] 40 root - INFO - Generated response saved as audio mp3 format.
51
+ [2024-10-29 20:55:38,498] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
52
+ [2024-10-29 20:55:38,498] 85 root - INFO - Stored text loaded.
53
+ [2024-10-29 20:56:10,663] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
54
+ [2024-10-29 20:56:13,507] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
logs/10_29_2024_21_35_54.log ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [2024-10-29 21:35:56,311] 28 root - INFO - LLM model for text generation created.
2
+ [2024-10-29 21:35:56,313] 28 root - INFO - LLM model for medical text generation created.
3
+ [2024-10-29 21:36:12,446] 23 root - INFO - Avatar system initiated.
4
+ [2024-10-29 21:37:08,417] 28 root - INFO - LLM model for text generation created.
5
+ [2024-10-29 21:37:08,420] 28 root - INFO - LLM model for medical text generation created.
6
+ [2024-10-29 21:37:10,860] 23 root - INFO - Avatar system initiated.
7
+ [2024-10-29 21:38:02,428] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
8
+ [2024-10-29 21:38:03,148] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
9
+ [2024-10-29 21:38:44,058] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
10
+ [2024-10-29 21:38:44,429] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
11
+ [2024-10-29 21:38:44,453] 31 root - INFO - Text response generated.
12
+ [2024-10-29 21:38:46,712] 32 root - INFO - Text response generated.
13
+ [2024-10-29 21:38:48,844] 30 root - INFO - Sentiment of response generated.
14
+ [2024-10-29 21:38:48,861] 36 root - INFO - Response sentiment received.
15
+ [2024-10-29 21:38:55,718] 19 root - INFO - Response text convertion to audio done.
16
+ [2024-10-29 21:38:55,718] 40 root - INFO - Generated response saved as audio mp3 format.
17
+ [2024-10-29 21:38:55,726] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
18
+ [2024-10-29 21:38:55,726] 85 root - INFO - Stored text loaded.
19
+ [2024-10-29 21:40:10,162] 28 root - INFO - LLM model for text generation created.
20
+ [2024-10-29 21:40:10,165] 28 root - INFO - LLM model for medical text generation created.
21
+ [2024-10-29 21:40:13,855] 23 root - INFO - Avatar system initiated.
22
+ [2024-10-29 21:40:14,701] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
23
+ [2024-10-29 21:40:15,423] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
24
+ [2024-10-29 21:40:15,436] 31 root - INFO - Text response generated.
25
+ [2024-10-29 21:40:26,082] 32 root - INFO - Text response generated.
26
+ [2024-10-29 21:40:27,438] 30 root - INFO - Sentiment of response generated.
27
+ [2024-10-29 21:40:27,438] 36 root - INFO - Response sentiment received.
28
+ [2024-10-29 21:41:09,495] 19 root - INFO - Response text convertion to audio done.
29
+ [2024-10-29 21:41:09,503] 40 root - INFO - Generated response saved as audio mp3 format.
30
+ [2024-10-29 21:41:09,503] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
31
+ [2024-10-29 21:41:09,506] 85 root - INFO - Stored text loaded.
32
+ [2024-10-29 21:51:28,023] 28 root - INFO - LLM model for text generation created.
33
+ [2024-10-29 21:51:28,028] 28 root - INFO - LLM model for medical text generation created.
34
+ [2024-10-29 21:51:31,579] 23 root - INFO - Avatar system initiated.
35
+ [2024-10-29 21:51:31,897] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
36
+ [2024-10-29 21:51:32,234] 413 huggingface_hub._login - WARNING - Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.
37
+ [2024-10-29 21:51:32,243] 31 root - INFO - Text response generated.
38
+ [2024-10-29 21:51:34,208] 32 root - INFO - Text response generated.
39
+ [2024-10-29 21:51:34,608] 30 root - INFO - Sentiment of response generated.
40
+ [2024-10-29 21:51:34,612] 36 root - INFO - Response sentiment received.
41
+ [2024-10-29 21:51:38,853] 19 root - INFO - Response text convertion to audio done.
42
+ [2024-10-29 21:51:38,853] 40 root - INFO - Generated response saved as audio mp3 format.
43
+ [2024-10-29 21:51:38,853] 79 root - INFO - Generated response stored in response.txt file in artifacts folder.
44
+ [2024-10-29 21:51:38,853] 85 root - INFO - Stored text loaded.
requirements.txt ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ numpy
2
+ pathlib
3
+ torch
4
+ transformers
5
+ pillow
6
+ opencv-python
7
+ os-sys==2.1.4
8
+ python-dotenv
9
+ langchain_huggingface
10
+ scipy
11
+ gtts
12
+ pygame
13
+ SpeechRecognition
14
+ pyttsx3
15
+ streamlit
16
+ streamlit-option-menu
17
+ pickle
src/__init__.py ADDED
File without changes
src/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (152 Bytes). View file
 
src/components/__init__.py ADDED
File without changes
src/components/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (163 Bytes). View file
 
src/components/__pycache__/avatarsys.cpython-311.pyc ADDED
Binary file (2.94 kB). View file
 
src/components/__pycache__/docchat.cpython-311.pyc ADDED
Binary file (1.75 kB). View file
 
src/components/__pycache__/emotionanalyz.cpython-311.pyc ADDED
Binary file (2.03 kB). View file
 
src/components/__pycache__/textprocess.cpython-311.pyc ADDED
Binary file (1.71 kB). View file
 
src/components/__pycache__/voicesynth.cpython-311.pyc ADDED
Binary file (1.24 kB). View file
 
src/components/avatarsys.py ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from src.exception.exception import customexception
2
+ from src.logger.logger import logging
3
+ from src.components.textprocess import TextProcessor
4
+ from src.components.docchat import DocChatProcessor
5
+ from src.components.emotionanalyz import EmotionAnalyzer
6
+ from src.components.voicesynth import VoiceSynthesizer
7
+
8
+ class AvatarConfig:
9
+ def __init__(self):
10
+ self.image_size = 512
11
+ self.voice_sample_rate = 22050
12
+ self.max_text_length = 512
13
+ # self.emotion_categories = ['negative','neutral', 'positive']
14
+
15
+ class AvatarSystem:
16
+ def __init__(self, hf_token):
17
+ self.config = AvatarConfig()
18
+ self.text_processor = TextProcessor(hf_token)
19
+ self.emotion_analyzer = EmotionAnalyzer()
20
+ self.voice_synthesiser = VoiceSynthesizer()
21
+ self.doc_chat_processor = DocChatProcessor(hf_token)
22
+
23
+ logging.info("Avatar system initiated.")
24
+
25
+ def process_input(self, user_input, docbot):
26
+ # Generate response
27
+ if docbot:
28
+ response = self.doc_chat_processor.generate_response(user_input)
29
+ logging.info("Docbot Text response generated.")
30
+ else:
31
+ response = self.text_processor.generate_response(user_input)
32
+ logging.info("Text response generated.")
33
+
34
+ # Analyze emotion
35
+ emotion = self.emotion_analyzer.analyze_emotion(response)
36
+ logging.info("Response sentiment received.")
37
+
38
+ # Synthesize voice and saves as mp3 file
39
+ self.voice_synthesiser.synthesize_speech(response)
40
+ logging.info("Generated response saved as audio mp3 format.")
41
+
42
+ return {
43
+ 'response_text': response,
44
+ 'emotion': emotion
45
+ }
src/components/docchat.py ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Text generation
2
+ from src.logger.logger import logging
3
+ from src.exception.exception import customexception
4
+ import os
5
+ from dotenv import load_dotenv
6
+ load_dotenv()
7
+ from langchain_huggingface import HuggingFaceEndpoint
8
+
9
+ # Text generation model
10
+ # repo_id="Laim/Llama-3.1-MedPalm2-imitate-8B-Instruct"
11
+ repo_id="Joycean0301/Llama-3.2-3B-Instruct-Medical-Conversational"
12
+
13
+ class DocChatProcessor:
14
+ def __init__(self, hf_token):
15
+ self.llm = HuggingFaceEndpoint(
16
+ repo_id=repo_id,
17
+ max_new_tokens=512,
18
+ top_k=10,
19
+ top_p=0.95,
20
+ typical_p=0.95,
21
+ temperature=0.01,
22
+ repetition_penalty=1.03,
23
+ streaming=False,
24
+ huggingfacehub_api_token= hf_token,
25
+ stop_sequences=['?', '</s>', '.\n\n']
26
+ )
27
+
28
+ logging.info("LLM model for medical text generation created.")
29
+
30
+ def generate_response(self, input_text):
31
+ logging.info("Text response generated.")
32
+ return self.llm.invoke(input_text)
src/components/emotionanalyz.py ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Emotion analysis
2
+ from src.exception.exception import customexception
3
+ from src.logger.logger import logging
4
+ from transformers import AutoTokenizer
5
+ from transformers import AutoModelForSequenceClassification
6
+ from scipy.special import softmax
7
+
8
+ # Pretrained model
9
+ MODEL = f"cardiffnlp/twitter-roberta-base-sentiment"
10
+ tokenizer = AutoTokenizer.from_pretrained(MODEL)
11
+ sentiment_model = AutoModelForSequenceClassification.from_pretrained(MODEL)
12
+
13
+ class EmotionAnalyzer:
14
+ def __init__(self):
15
+ self.emotion_classifier = sentiment_model
16
+ self.emotion = ''
17
+
18
+ # Roberta model
19
+ def analyze_emotion(self, text):
20
+ encoded_text = tokenizer(text, return_tensors='pt')
21
+ output = self.emotion_classifier(**encoded_text)
22
+ scores = output[0][0].detach().numpy()
23
+ scores = softmax(scores)
24
+ scores_dict = {
25
+ 'negative': scores[0],
26
+ 'neutral': scores[1],
27
+ 'positive': scores[2],
28
+ }
29
+ self.emotion = max(scores_dict)
30
+ logging.info("Sentiment of response generated.")
31
+
32
+ return self.emotion
src/components/textprocess.py ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Text generation
2
+ from src.logger.logger import logging
3
+ from src.exception.exception import customexception
4
+ import os
5
+ from dotenv import load_dotenv
6
+ load_dotenv()
7
+ from langchain_huggingface import HuggingFaceEndpoint
8
+
9
+ # Text generation model
10
+ repo_id="mistralai/Mistral-7B-Instruct-v0.3"
11
+ # repo_id='openai-community/gpt2'
12
+
13
+ class TextProcessor:
14
+ def __init__(self, hf_token):
15
+ self.llm = HuggingFaceEndpoint(
16
+ repo_id=repo_id,
17
+ max_new_tokens=512,
18
+ top_k=10,
19
+ top_p=0.95,
20
+ typical_p=0.95,
21
+ temperature=0.01,
22
+ repetition_penalty=1.03,
23
+ streaming=False,
24
+ huggingfacehub_api_token= hf_token,
25
+ stop_sequences=['?', '</s>', '.\n\n']
26
+ )
27
+
28
+ logging.info("LLM model for text generation created.")
29
+
30
+ def generate_response(self, input_text):
31
+ logging.info("Text response generated.")
32
+ return self.llm.invoke(input_text)
src/components/voicesynth.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Text to audio convertion
2
+ from src.logger.logger import logging
3
+ from src.exception.exception import customexception
4
+ from gtts import gTTS
5
+
6
+ class VoiceSynthesizer:
7
+ def __init__(self):
8
+ pass
9
+
10
+ def synthesize_speech(self, text):
11
+ # Text to English
12
+ language = 'en'
13
+
14
+ # Conversion engine
15
+ converter = gTTS(text=text, lang=language, slow=False)
16
+
17
+ # Saving the converted audio in a mp3 file named
18
+ converter.save("artifacts/Audio.mp3")
19
+ logging.info("Response text convertion to audio done.")
src/exception/__init__.py ADDED
File without changes
src/exception/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (162 Bytes). View file
 
src/exception/__pycache__/exception.cpython-311.pyc ADDED
Binary file (1.34 kB). View file
 
src/exception/exception.py ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+
3
+
4
+ class customexception(Exception):
5
+
6
+ def __init__(self,error_message,error_details:sys):
7
+ self.error_message=error_message
8
+ _,_,exc_tb=error_details.exc_info()
9
+ print(exc_tb)
10
+
11
+ self.lineno=exc_tb.tb_lineno
12
+ self.file_name=exc_tb.tb_frame.f_code.co_filename
13
+
14
+ def __str__(self):
15
+ return "Error occured in python script name [{0}] line number [{1}] error message [{2}]".format(
16
+ self.file_name, self.lineno, str(self.error_message))
17
+
18
+ # Test script
19
+ # if __name__=="__main__":
20
+ # try:
21
+ # a=1/0
22
+
23
+ # except Exception as e:
24
+ # #print(e)
25
+ # raise customexception(e,sys)
src/logger/__init__.py ADDED
File without changes
src/logger/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (159 Bytes). View file
 
src/logger/__pycache__/logger.cpython-311.pyc ADDED
Binary file (929 Bytes). View file
 
src/logger/logger.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import logging
2
+ import os
3
+ from datetime import datetime
4
+
5
+ LOG_FILE=f"{datetime.now().strftime('%m_%d_%Y_%H_%M_%S')}.log"
6
+
7
+ log_path=os.path.join(os.getcwd(),"logs")
8
+
9
+ os.makedirs(log_path,exist_ok=True)
10
+
11
+ LOG_FILEPATH=os.path.join(log_path,LOG_FILE)
12
+
13
+
14
+ logging.basicConfig(level=logging.INFO,
15
+ filename=LOG_FILEPATH,
16
+ format="[%(asctime)s] %(lineno)d %(name)s - %(levelname)s - %(message)s"
17
+
18
+ )
19
+
src/utils/__init__.py ADDED
File without changes
src/utils/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (158 Bytes). View file
 
src/utils/__pycache__/accessory.cpython-311.pyc ADDED
Binary file (4.72 kB). View file
 
src/utils/accessory.py ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ from pathlib import Path
3
+ import speech_recognition as sr
4
+ import pyttsx3
5
+ import pygame
6
+ from src.components.voicesynth import VoiceSynthesizer
7
+ from src.logger.logger import logging
8
+ from src.exception.exception import customexception
9
+ import tkinter as tk
10
+
11
+ # Initialize the voice recognizer
12
+ r = sr.Recognizer()
13
+
14
+ def play_speech(text):
15
+ # Voice syntesizer initiation
16
+ converter = VoiceSynthesizer()
17
+ converter.synthesize_speech(text)
18
+
19
+ # Initialize the mixer module
20
+ pygame.mixer.init()
21
+
22
+ # Load the mp3 file
23
+ pygame.mixer.music.load("artifacts/Audio.mp3")
24
+ logging.info("Generated audio file loaded")
25
+
26
+ # Play the loaded mp3 file
27
+ pygame.mixer.music.play()
28
+ pygame.mixer.music.get_endevent()
29
+ while pygame.mixer.music.get_busy():
30
+ continue
31
+ pygame.mixer.music.load("artifacts/Audio_copy.mp3")
32
+ os.remove("artifacts/Audio.mp3")
33
+ logging.info("Created audio file removed for entry of new file.")
34
+
35
+ # Function to convert text to
36
+ # speech
37
+ def SpeakText(command):
38
+ # Initialize the engine
39
+ engine = pyttsx3.init()
40
+ engine.say(command)
41
+ engine.runAndWait()
42
+
43
+ def listen():
44
+ # obtain audio from the microphone
45
+ r = sr.Recognizer()
46
+ with sr.Microphone() as source:
47
+ print("Say something!")
48
+ audio = r.listen(source)
49
+
50
+ # # recognize speech using Sphinx
51
+ # try:
52
+ # print("Sphinx thinks you said " + r.recognize_sphinx(audio))
53
+ # except sr.UnknownValueError:
54
+ # print("Sphinx could not understand audio")
55
+ # except sr.RequestError as e:
56
+ # print("Sphinx error; {0}".format(e))
57
+
58
+ # recognize speech using Google Speech Recognition
59
+ try:
60
+ # for testing purposes, we're just using the default API key
61
+ # to use another API key, use `r.recognize_google(audio, key="GOOGLE_SPEECH_RECOGNITION_API_KEY")`
62
+ # instead of `r.recognize_google(audio)`
63
+ text = r.recognize_google(audio)
64
+ print("Google Speech Recognition thinks you said " + text)
65
+
66
+ return text
67
+
68
+ except sr.UnknownValueError:
69
+ print("Google Speech Recognition could not understand audio")
70
+ except sr.RequestError as e:
71
+ print("Could not request results from Google Speech Recognition service; {0}".format(e))
72
+
73
+ def save_output(output_data, output_dir="artifacts"):
74
+ Path(output_dir).mkdir(exist_ok=True)
75
+
76
+ # Save text response
77
+ with open(f"{output_dir}/response.txt", "w") as f:
78
+ f.write(output_data['response_text'])
79
+ logging.info("Generated response stored in response.txt file in artifacts folder.")
80
+
81
+ def load_output(output_dir="artifacts"):
82
+ # Load text response
83
+ with open(f"{output_dir}/response.txt", "r") as f:
84
+ answer = f.read()
85
+ logging.info("Stored text loaded.")
86
+
87
+ return answer