debisoft commited on
Commit
fabf940
·
1 Parent(s): a86f042
Files changed (1) hide show
  1. app.py +11 -22
app.py CHANGED
@@ -58,7 +58,7 @@ Give a score for the product. Format your response as a JSON object with 'soluti
58
  Loop is a company which converts fruit waste into juice to help retail stores reduce food loss by buying up fruits which were designated for trash.
59
 
60
  ### Response:
61
- \{"solution": "Loop", "problem": "fruit waste", "features": "convert fruit waste into juice", "target_customer": "retail stores", "fg_will_use": "True", "reason_to_use": "Loop is creating juice out of fruit waste which would otherwise be trash. Saving money by buying fruits for juice instead of paying for it makes it a must-have for our retail operations.","fg_will_pay": "True", "reason_to_pay": "We will not pay for it as we are creating juice out of fruit waste which would otherwise be trash.","fg_will_invest": "True", "reason_to_invest": "There are many retailers like us who are looking to save money by buying fruits for juice instead of paying for it. Investing in Loop would make our purchase cheaper making it an attractive investment opportunity.","score": "90"\}
62
 
63
  Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
64
 
@@ -74,7 +74,7 @@ Give a score for the product. Format your response as a JSON object with 'soluti
74
  Thawrih brings diversity and inclusivity to the activewear market with its sports hijabs, sports turbans, and a range of inclusive activewear.
75
 
76
  ### Response:
77
- {"solution": "Thawrih", "problem": "inclusivity", "features": "sports hijabs, sports turbans", "target_customer": "Individuals who wear hijabs, those needing modest and plus-size activewear, organizations requiring uniform headgear", "fg_will_use": "True", "reason_to_use": "Thawrih makes great products that are inclusive of everyone, not just Muslims. As a religious minority, I know the pain of being in a niche market. Thawrih is the great opportunity to make the Muslim community great by making its clothes great too. ","fg_will_pay": "True", "reason_to_pay": "As Thawrih targets the Muslim community, paying for it would be rewarding our Muslim brothers and sisters.","fg_will_invest": "True", "reason_to_invest": "There are many customers like me who are looking to use Thawrih to make their life great by adopting its products. Investing in Thawrih would make it accessible to more customers making it an attractive investment opportunity.","score": "95"}
78
 
79
  ### Instruction:
80
  You are demanding customer
@@ -88,32 +88,20 @@ Give a score for the product. Format your response as a JSON object with 'soluti
88
  I am building an online community to help people to find dates.
89
 
90
  ### Response:
91
- {"solution": "FindDates.com", "problem": "finding a date", "features": "online community to help people find dates", "target_customer": "people looking for a date", "fg_will_use": "True", "reason_to_use": "I am looking for an online community to help people find dates. FindDates.com meets my needs and I would use it to find my next great date.","fg_will_pay": "True", "reason_to_pay": "I would not pay for it as I am looking for an online community to help people find dates. But for products related to dating, paying for it would be a no-brainer.","fg_will_invest": "False", "reason_to_invest": "There are many online dating platforms already.","score": "40"}
92
  """
93
 
94
- prompt = f"""
95
- Determine the product or solution, the problem being solved, features, target customer that are being discussed in the \
96
- following text, which is delimited by triple backticks. Then, pretend that you are the target customer. \
97
- State if you would use this product and elaborate on why. Also state if you would pay for it and elaborate on why.\
98
-
99
- Format your response as a JSON object with \
100
- 'solution', 'problem', 'features', 'target_customer', 'fg_will_use', 'reason_to_use', 'fg_will_pay', 'reason_to_pay' as the keys.\
101
-
102
- Text sample: '''{input}'''
103
- """
104
-
105
  sys_msg="You are demanding customer."
106
 
107
- instruction = """\\n\
108
- Determine the product or solution, the problem being solved, features, target customer that are being discussed in the \
109
  following user prompt. State if you would use this product and elaborate on why. Also state if you would pay for it and elaborate on why.\
110
- Finally, state if you would invest in it and elaborate on why.\\n\
111
- \\n\
112
  Give a score for the product. Format your response as a JSON object with \
113
- 'solution', 'problem', 'features', 'target_customer', 'fg_will_use', 'reason_to_use', 'fg_will_pay', 'reason_to_pay', 'fg_will_invest', 'reason_to_invest', 'score' as the keys.\\n\"""
 
114
 
115
- prompt_template = f"""
116
- Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
117
 
118
  ### Instruction:
119
  {sys_msg}
@@ -122,7 +110,8 @@ Below is an instruction that describes a task, paired with an input that provide
122
  ### Input:
123
  {input}
124
 
125
- ### Response:"""
 
126
 
127
  total_prompt = f"""{n_shot_learning}\n{prompt_template}"""
128
  print("***total_prompt:")
 
58
  Loop is a company which converts fruit waste into juice to help retail stores reduce food loss by buying up fruits which were designated for trash.
59
 
60
  ### Response:
61
+ {{"solution": "Loop", "problem": "fruit waste", "features": "convert fruit waste into juice", "target_customer": "retail stores", "fg_will_use": "True", "reason_to_use": "Loop is creating juice out of fruit waste which would otherwise be trash. Saving money by buying fruits for juice instead of paying for it makes it a must-have for our retail operations.","fg_will_pay": "True", "reason_to_pay": "We will not pay for it as we are creating juice out of fruit waste which would otherwise be trash.","fg_will_invest": "True", "reason_to_invest": "There are many retailers like us who are looking to save money by buying fruits for juice instead of paying for it. Investing in Loop would make our purchase cheaper making it an attractive investment opportunity.","score": "90"}}
62
 
63
  Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
64
 
 
74
  Thawrih brings diversity and inclusivity to the activewear market with its sports hijabs, sports turbans, and a range of inclusive activewear.
75
 
76
  ### Response:
77
+ {{"solution": "Thawrih", "problem": "inclusivity", "features": "sports hijabs, sports turbans", "target_customer": "Individuals who wear hijabs, those needing modest and plus-size activewear, organizations requiring uniform headgear", "fg_will_use": "True", "reason_to_use": "Thawrih makes great products that are inclusive of everyone, not just Muslims. As a religious minority, I know the pain of being in a niche market. Thawrih is the great opportunity to make the Muslim community great by making its clothes great too. ","fg_will_pay": "True", "reason_to_pay": "As Thawrih targets the Muslim community, paying for it would be rewarding our Muslim brothers and sisters.","fg_will_invest": "True", "reason_to_invest": "There are many customers like me who are looking to use Thawrih to make their life great by adopting its products. Investing in Thawrih would make it accessible to more customers making it an attractive investment opportunity.","score": "95"}}
78
 
79
  ### Instruction:
80
  You are demanding customer
 
88
  I am building an online community to help people to find dates.
89
 
90
  ### Response:
91
+ {{"solution": "FindDates.com", "problem": "finding a date", "features": "online community to help people find dates", "target_customer": "people looking for a date", "fg_will_use": "True", "reason_to_use": "I am looking for an online community to help people find dates. FindDates.com meets my needs and I would use it to find my next great date.","fg_will_pay": "True", "reason_to_pay": "I would not pay for it as I am looking for an online community to help people find dates. But for products related to dating, paying for it would be a no-brainer.","fg_will_invest": "False", "reason_to_invest": "There are many online dating platforms already.","score": "40"}}
92
  """
93
 
 
 
 
 
 
 
 
 
 
 
 
94
  sys_msg="You are demanding customer."
95
 
96
+ instruction = """Determine the product or solution, the problem being solved, features, target customer that are being discussed in the \
 
97
  following user prompt. State if you would use this product and elaborate on why. Also state if you would pay for it and elaborate on why.\
98
+ Finally, state if you would invest in it and elaborate on why.\
99
+
100
  Give a score for the product. Format your response as a JSON object with \
101
+ 'solution', 'problem', 'features', 'target_customer', 'fg_will_use', 'reason_to_use', 'fg_will_pay', 'reason_to_pay', 'fg_will_invest', 'reason_to_invest', 'score' as the keys.
102
+ """
103
 
104
+ prompt_template = f"""Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
 
105
 
106
  ### Instruction:
107
  {sys_msg}
 
110
  ### Input:
111
  {input}
112
 
113
+ ### Response:
114
+ """
115
 
116
  total_prompt = f"""{n_shot_learning}\n{prompt_template}"""
117
  print("***total_prompt:")