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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +50 -30
app.py CHANGED
@@ -115,52 +115,62 @@ Question 3: {question3}
115
  The profiles and their answers are:
116
  Profile 1:
117
  {expert1}
118
- His answers were:
 
119
  {response1}
120
 
121
  Profile 2:
122
  {expert2}
123
- His answers were:
 
124
  {response2}
125
 
126
  Profile 3:
127
  {expert3}
128
- His answers were:
 
129
  {response3}
130
 
131
  Profile 4:
132
  {expert4}
133
- His answers were:
 
134
  {response4}
135
 
136
  Profile 5:
137
  {expert5}
138
- His answers were:
 
139
  {response5}
140
 
141
  Profile 6:
142
  {expert6}
143
- His answers were:
 
144
  {response6}
145
 
146
  Profile 7:
147
  {expert7}
148
- His answers were:
 
149
  {response7}
150
 
151
  Profile 8:
152
  {expert8}
153
- His answers were:
 
154
  {response8}
155
 
156
  Profile 9:
157
  {expert9}
158
- His answers were:
 
159
  {response9}
160
 
161
  Profile 10:
162
  {expert10}
163
- His answers were:
 
164
  {response10}
165
 
166
  Follow these rules:
@@ -169,7 +179,7 @@ Follow these rules:
169
  - Keep all the points raised by the participants with details, break them down in a rational and professional way
170
  - 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
171
 
172
- Now please provide your summary.
173
  """
174
  formattedprompt = [{'role':'system','content':system_message},{'role':'user','content':prompt}]
175
  result = answer(formattedprompt)
@@ -183,52 +193,62 @@ This is summary report on a focus group which title is:
183
 
184
  // Profile 1 //
185
  {expert1}
186
- His answers were:
 
187
  {response1}
188
-
189
  // Profile 2 //
190
  {expert2}
191
- His answers were:
 
192
  {response2}
193
-
194
  // Profile 3 //
195
  {expert3}
196
- His answers were:
 
197
  {response3}
198
-
199
  // Profile 4 //
200
  {expert4}
201
- His answers were:
 
202
  {response4}
203
-
204
  // Profile 5 //
205
  {expert5}
206
- His answers were:
 
207
  {response5}
208
-
209
  // Profile 6 //
210
  {expert6}
211
- His answers were:
 
212
  {response6}
213
-
214
  // Profile 7 //
215
  {expert7}
216
- His answers were:
 
217
  {response7}
218
-
219
  // Profile 8 //
220
  {expert8}
221
- His answers were:
 
222
  {response8}
223
-
224
  // Profile 9 //
225
  {expert9}
226
- His answers were:
 
227
  {response9}
228
-
229
  // Profile 10 //
230
  {expert10}
231
- His answers were:
 
232
  {response10}
233
  """
234
  return result
 
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:
 
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)
 
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