Guiyom commited on
Commit
cf552d5
·
1 Parent(s): 507bb2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +64 -42
app.py CHANGED
@@ -115,140 +115,162 @@ Question 3: {question3}
115
  The profiles and their answers are:
116
  Profile 1:
117
  {expert1}
118
- =====================
119
- Participants answers:
120
- {response1}
121
 
 
 
 
122
  Profile 2:
123
  {expert2}
124
- =====================
125
- Participants answers:
126
- {response2}
127
 
 
 
 
128
  Profile 3:
129
  {expert3}
130
- =====================
131
- Participants answers:
132
- {response3}
133
 
 
 
 
134
  Profile 4:
135
  {expert4}
136
- =====================
137
- Participants answers:
138
- {response4}
139
 
 
 
 
140
  Profile 5:
141
  {expert5}
142
- =====================
143
- Participants answers:
144
- {response5}
145
 
 
 
 
146
  Profile 6:
147
  {expert6}
148
- =====================
149
- Participants answers:
150
- {response6}
151
 
 
 
 
152
  Profile 7:
153
  {expert7}
154
- =====================
155
- Participants answers:
156
- {response7}
157
 
 
 
 
158
  Profile 8:
159
  {expert8}
160
- =====================
161
- Participants answers:
162
- {response8}
163
 
 
 
 
164
  Profile 9:
165
  {expert9}
166
- =====================
167
- Participants answers:
168
- {response9}
169
 
 
 
 
170
  Profile 10:
171
  {expert10}
172
- =====================
173
- Participants answers:
174
  {response10}
175
 
 
 
 
176
  Follow these rules:
177
  - Summarize the answers per question, start with 'Question 1:' and repeat the question then provide the summary below
178
  - Provide your summary per question, breaking down the nuance per demographic or profession or any social / profiling category you see fit
179
  - Keep all the points raised by the participants with details, break them down in a rational and professional way
180
  - For each question, provide a recommendation for action to address the needs expressed in the answers for each question, start it with "Recommendation:" then add your prespecriptions on bullet points just asfter
181
 
 
182
  Now please provide your summary and recommendations for each of the questions
183
  """
184
  formattedprompt = [{'role':'system','content':system_message},{'role':'user','content':prompt}]
185
  result = answer(formattedprompt)
186
- result = f"""
187
- This is summary report on a focus group which title is:
188
- {title}
189
 
190
  --- Summary report ---
191
  {result}
 
 
192
  ----------------------------- APPENDIX / Profiles and Raw results from participants -----------------------------
193
 
194
  // Profile 1 //
195
  {expert1}
196
  =====================
197
- Participants answers:
198
  {response1}
 
199
  ------------------------------------------------------------------------------------------------------------------
 
200
  // Profile 2 //
201
  {expert2}
202
  =====================
203
- Participants answers:
204
  {response2}
 
205
  ------------------------------------------------------------------------------------------------------------------
 
206
  // Profile 3 //
207
  {expert3}
208
  =====================
209
- Participants answers:
210
  {response3}
 
211
  ------------------------------------------------------------------------------------------------------------------
 
212
  // Profile 4 //
213
  {expert4}
214
  =====================
215
- Participants answers:
216
  {response4}
 
217
  ------------------------------------------------------------------------------------------------------------------
 
218
  // Profile 5 //
219
  {expert5}
220
  =====================
221
- Participants answers:
222
  {response5}
 
223
  ------------------------------------------------------------------------------------------------------------------
 
224
  // Profile 6 //
225
  {expert6}
226
  =====================
227
- Participants answers:
228
  {response6}
 
229
  ------------------------------------------------------------------------------------------------------------------
 
230
  // Profile 7 //
231
  {expert7}
232
  =====================
233
- Participants answers:
234
  {response7}
 
235
  ------------------------------------------------------------------------------------------------------------------
 
236
  // Profile 8 //
237
  {expert8}
238
  =====================
239
- Participants answers:
240
  {response8}
 
241
  ------------------------------------------------------------------------------------------------------------------
 
242
  // Profile 9 //
243
  {expert9}
244
  =====================
245
- Participants answers:
246
  {response9}
 
247
  ------------------------------------------------------------------------------------------------------------------
 
248
  // Profile 10 //
249
  {expert10}
250
  =====================
251
- Participants answers:
252
  {response10}
253
  """
254
  return result
 
115
  The profiles and their answers are:
116
  Profile 1:
117
  {expert1}
 
 
 
118
 
119
+ Participant answers:
120
+ {response1}
121
+ =====================
122
  Profile 2:
123
  {expert2}
 
 
 
124
 
125
+ Participant answers:
126
+ {response2}
127
+ =====================
128
  Profile 3:
129
  {expert3}
 
 
 
130
 
131
+ Participant answers:
132
+ {response3}
133
+ =====================
134
  Profile 4:
135
  {expert4}
 
 
 
136
 
137
+ Participant answers:
138
+ {response4}
139
+ =====================
140
  Profile 5:
141
  {expert5}
 
 
 
142
 
143
+ Participant answers:
144
+ {response5}
145
+ =====================
146
  Profile 6:
147
  {expert6}
 
 
 
148
 
149
+ Participant answers:
150
+ {response6}
151
+ =====================
152
  Profile 7:
153
  {expert7}
 
 
 
154
 
155
+ Participant answers:
156
+ {response7}
157
+ =====================
158
  Profile 8:
159
  {expert8}
 
 
 
160
 
161
+ Participant answers:
162
+ {response8}
163
+ =====================
164
  Profile 9:
165
  {expert9}
 
 
 
166
 
167
+ Participant answers:
168
+ {response9}
169
+ =====================
170
  Profile 10:
171
  {expert10}
172
+
173
+ Participant answers:
174
  {response10}
175
 
176
+
177
+
178
+
179
  Follow these rules:
180
  - Summarize the answers per question, start with 'Question 1:' and repeat the question then provide the summary below
181
  - Provide your summary per question, breaking down the nuance per demographic or profession or any social / profiling category you see fit
182
  - Keep all the points raised by the participants with details, break them down in a rational and professional way
183
  - For each question, provide a recommendation for action to address the needs expressed in the answers for each question, start it with "Recommendation:" then add your prespecriptions on bullet points just asfter
184
 
185
+
186
  Now please provide your summary and recommendations for each of the questions
187
  """
188
  formattedprompt = [{'role':'system','content':system_message},{'role':'user','content':prompt}]
189
  result = answer(formattedprompt)
190
+ result = f"""This is summary report on a focus group which title is: {title}
 
 
191
 
192
  --- Summary report ---
193
  {result}
194
+
195
+
196
  ----------------------------- APPENDIX / Profiles and Raw results from participants -----------------------------
197
 
198
  // Profile 1 //
199
  {expert1}
200
  =====================
201
+ Participant answers:
202
  {response1}
203
+
204
  ------------------------------------------------------------------------------------------------------------------
205
+
206
  // Profile 2 //
207
  {expert2}
208
  =====================
209
+ Participant answers:
210
  {response2}
211
+
212
  ------------------------------------------------------------------------------------------------------------------
213
+
214
  // Profile 3 //
215
  {expert3}
216
  =====================
217
+ Participant answers:
218
  {response3}
219
+
220
  ------------------------------------------------------------------------------------------------------------------
221
+
222
  // Profile 4 //
223
  {expert4}
224
  =====================
225
+ Participant answers:
226
  {response4}
227
+
228
  ------------------------------------------------------------------------------------------------------------------
229
+
230
  // Profile 5 //
231
  {expert5}
232
  =====================
233
+ Participant answers:
234
  {response5}
235
+
236
  ------------------------------------------------------------------------------------------------------------------
237
+
238
  // Profile 6 //
239
  {expert6}
240
  =====================
241
+ Participant answers:
242
  {response6}
243
+
244
  ------------------------------------------------------------------------------------------------------------------
245
+
246
  // Profile 7 //
247
  {expert7}
248
  =====================
249
+ Participant answers:
250
  {response7}
251
+
252
  ------------------------------------------------------------------------------------------------------------------
253
+
254
  // Profile 8 //
255
  {expert8}
256
  =====================
257
+ Participant answers:
258
  {response8}
259
+
260
  ------------------------------------------------------------------------------------------------------------------
261
+
262
  // Profile 9 //
263
  {expert9}
264
  =====================
265
+ Participant answers:
266
  {response9}
267
+
268
  ------------------------------------------------------------------------------------------------------------------
269
+
270
  // Profile 10 //
271
  {expert10}
272
  =====================
273
+ Participant answers:
274
  {response10}
275
  """
276
  return result