Spaces:
Runtime error
Runtime error
Update app.py
Browse files114 unmodified lines115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254114 unmodified linesThe profiles and their answers are:Profile 1:{expert1}=====================Participants answers:{response1}Profile 2:{expert2}=====================Participants answers:{response2}Profile 3:{expert3}=====================Participants answers:{response3}Profile 4:{expert4}=====================Participants answers:{response4}Profile 5:{expert5}=====================Participants answers:{response5}Profile 6:{expert6}=====================Participants answers:{response6}Profile 7:{expert7}=====================Participants answers:{response7}Profile 8:{expert8}=====================Participants answers:{response8}Profile 9:{expert9}=====================Participants answers:{response9}Profile 10:{expert10}=====================Participants answers:{response10}Follow these rules:- Summarize the answers per question, start with 'Question 1:' and repeat the question then provide the summary below- Provide your summary per question, breaking down the nuance per demographic or profession or any social / profiling category you see fit- Keep all the points raised by the participants with details, break them down in a rational and professional way- 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 asfterNow please provide your summary and recommendations for each of the questions"""formattedprompt = [{'role':'system','content':system_message},{'role':'user','content':prompt}]result = answer(formattedprompt)result = f"""This is summary report on a focus group which title is:{title}--- Summary report ---{result}----------------------------- APPENDIX / Profiles and Raw results from participants -----------------------------// Profile 1 //{expert1}=====================Participants answers:{response1}------------------------------------------------------------------------------------------------------------------// Profile 2 //{expert2}=====================Participants answers:{response2}------------------------------------------------------------------------------------------------------------------// Profile 3 //{expert3}=====================Participants answers:{response3}------------------------------------------------------------------------------------------------------------------// Profile 4 //{expert4}=====================Participants answers:{response4}------------------------------------------------------------------------------------------------------------------// Profile 5 //{expert5}=====================Participants answers:{response5}------------------------------------------------------------------------------------------------------------------// Profile 6 //{expert6}=====================Participants answers:{response6}------------------------------------------------------------------------------------------------------------------// Profile 7 //{expert7}=====================Participants answers:{response7}------------------------------------------------------------------------------------------------------------------// Profile 8 //{expert8}=====================Participants answers:{response8}------------------------------------------------------------------------------------------------------------------// Profile 9 //{expert9}=====================Participants answers:{response9}------------------------------------------------------------------------------------------------------------------// Profile 10 //{expert10}=====================Participants answers:{response10}"""return result114 unmodified lines115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276114 unmodified linesThe profiles and their answers are:Profile 1:{expert1}Participant answers:{response1}=====================Profile 2:{expert2}Participant answers:{response2}=====================Profile 3:{expert3}Participant answers:{response3}=====================Profile 4:{expert4}Participant answers:{response4}=====================Profile 5:{expert5}Participant answers:{response5}=====================Profile 6:{expert6}Participant answers:{response6}=====================Profile 7:{expert7}Participant answers:{response7}=====================Profile 8:{expert8}Participant answers:{response8}=====================Profile 9:{expert9}Participant answers:{response9}=====================Profile 10:{expert10}Participant answers:{response10}Follow these rules:- Summarize the answers per question, start with 'Question 1:' and repeat the question then provide the summary below- Provide your summary per question, breaking down the nuance per demographic or profession or any social / profiling category you see fit- Keep all the points raised by the participants with details, break them down in a rational and professional way- 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 asfterNow please provide your summary and recommendations for each of the questions"""formattedprompt = [{'role':'system','content':system_message},{'role':'user','content':prompt}]result = answer(formattedprompt)result = f"""This is summary report on a focus group which title is: {title}--- Summary report ---{result}----------------------------- APPENDIX / Profiles and Raw results from participants -----------------------------// Profile 1 //{expert1}=====================Participant answers:{response1}------------------------------------------------------------------------------------------------------------------// Profile 2 //{expert2}=====================Participant answers:{response2}------------------------------------------------------------------------------------------------------------------// Profile 3 //{expert3}=====================Participant answers:{response3}------------------------------------------------------------------------------------------------------------------// Profile 4 //{expert4}=====================Participant answers:{response4}------------------------------------------------------------------------------------------------------------------// Profile 5 //{expert5}=====================Participant answers:{response5}------------------------------------------------------------------------------------------------------------------// Profile 6 //{expert6}=====================Participant answers:{response6}------------------------------------------------------------------------------------------------------------------// Profile 7 //{expert7}=====================Participant answers:{response7}------------------------------------------------------------------------------------------------------------------// Profile 8 //{expert8}=====================Participant answers:{response8}------------------------------------------------------------------------------------------------------------------// Profile 9 //{expert9}=====================Participant answers:{response9}------------------------------------------------------------------------------------------------------------------// Profile 10 //{expert10}=====================Participant answers:{response10}"""return result
app.py+64-42