debisoft commited on
Commit
2eac276
·
1 Parent(s): aa04048
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -43,7 +43,8 @@ def score_model(model_uri, databricks_token, prompt):
43
  def get_completion(prompt):
44
  return score_model(model_uri, databricks_token, prompt)
45
 
46
- n_shot_learning = """Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
 
47
 
48
  ### Instruction:
49
  You are demanding customer
@@ -87,10 +88,8 @@ Give a score for the product. Format your response as a JSON object with 'soluti
87
  I am building an online community to help people to find dates.
88
 
89
  ### Response:
90
- {"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"}
91
- """
92
 
93
- def greet(input):
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. \
 
43
  def get_completion(prompt):
44
  return score_model(model_uri, databricks_token, prompt)
45
 
46
+ def greet(input):
47
+ n_shot_learning = """Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
48
 
49
  ### Instruction:
50
  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
  prompt = f"""
94
  Determine the product or solution, the problem being solved, features, target customer that are being discussed in the \
95
  following text, which is delimited by triple backticks. Then, pretend that you are the target customer. \