debisoft commited on
Commit
a86f042
·
1 Parent(s): c36715d
Files changed (1) hide show
  1. app.py +13 -15
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
 
@@ -110,21 +110,19 @@ following user prompt. State if you would use this product 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
 
116
- prompt_template = f"""\\n\
117
- Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.\\n\
118
- \\n\
119
- ### Instruction:\\n\
120
- {sys_msg}\\n\
121
- {instruction}\\n\
122
- \\n\
123
- ### Input:\\n\
124
- {input}\\n\
125
- \\n\
126
- ### Response:\\n\
127
- """
128
 
129
  total_prompt = f"""{n_shot_learning}\n{prompt_template}"""
130
  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
 
 
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}
120
+ {instruction}
121
+
122
+ ### Input:
123
+ {input}
124
+
125
+ ### Response:"""
 
126
 
127
  total_prompt = f"""{n_shot_learning}\n{prompt_template}"""
128
  print("***total_prompt:")