ervijayraghuwanshi commited on
Commit
764acaf
1 Parent(s): d41580c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -13
app.py CHANGED
@@ -31,18 +31,18 @@ def format_prompt(message, history):
31
 
32
  # Introduction (replace placeholders with actual content if needed)
33
  prompt += f"""**Introduction:**
34
- Perform survye on `{model} Wireless Headphones`: This name is broad enough to encompass various headphone types (over-ear, on-ear, earbuds) while highlighting a key feature (wireless) that's relevant across categories.
35
  0. **What model you have purchased, and from which brand?**
36
- 1. **How satisfied are you with the overall sound quality of your {model} Wireless Headphones?** (Very satisfied, Somewhat satisfied, Neutral, Somewhat dissatisfied, Very dissatisfied)
37
- 2. **On a scale of 1 (strongly disagree) to 5 (strongly agree), how comfortable are your {model} Wireless Headphones to wear for extended periods?**
38
- 3. **Did the battery life of your {model} Wireless Headphones meet your expectations based on the product description?** (Yes/No)
39
- 4. **How easy was it to connect your {model} Wireless Headphones to your devices via Bluetooth?** (Very easy, Somewhat easy, Neutral, Somewhat difficult, Very difficult)
40
- 5. **Do the controls on your {model} Wireless Headphones (volume, play/pause, etc.) function smoothly and intuitively?** (Yes/No)
41
- 6. **For over-ear or on-ear headphones only: How well do the ear cups of your {model} Wireless Headphones block out external noise?** (Very well, Somewhat well, Neutral, Not very well, Not at all)
42
- 7. **For earbuds only: How secure is the fit of your {model} Wireless Headphones in your ears?** (Very secure, Somewhat secure, Neutral, Not very secure, Not secure at all)
43
- 8. **Do the features advertised for your {model} Wireless Headphones (noise cancellation, microphone quality, etc.) function as expected?** (Yes/No)
44
- 9. **Overall, how likely are you to recommend these {model} Wireless Headphones to a friend or family member?** (Very likely, Somewhat likely, Neutral, Somewhat unlikely, Not likely at all)
45
- 10. **(Optional) Is there any additional feedback you'd like to share about your experience with your {model} Wireless Headphones?** (Open ended text response)
46
  # end the conversation with few last questions and give the summary of survey feedback
47
  11. "What do you like most about our product?",
48
  12. "How can we improve our product?",
@@ -61,8 +61,6 @@ def format_prompt(message, history):
61
  # Add current user message
62
  prompt += f"[INST] {message} [/INST]\n"
63
 
64
- Prompt continuation based on current survey stage
65
- (Replace with your logic to determine the next question based on history)
66
  current_question = len(history) + 1
67
  if current_question <= 13:
68
  prompt += "next question"
 
31
 
32
  # Introduction (replace placeholders with actual content if needed)
33
  prompt += f"""**Introduction:**
34
+ Perform survye on `model` Wireless Headphones`: This name is broad enough to encompass various headphone types (over-ear, on-ear, earbuds) while highlighting a key feature (wireless) that's relevant across categories.
35
  0. **What model you have purchased, and from which brand?**
36
+ 1. **How satisfied are you with the overall sound quality of your `model` Wireless Headphones?** (Very satisfied, Somewhat satisfied, Neutral, Somewhat dissatisfied, Very dissatisfied)
37
+ 2. **On a scale of 1 (strongly disagree) to 5 (strongly agree), how comfortable are your `model` Wireless Headphones to wear for extended periods?**
38
+ 3. **Did the battery life of your `model` Wireless Headphones meet your expectations based on the product description?** (Yes/No)
39
+ 4. **How easy was it to connect your `model` Wireless Headphones to your devices via Bluetooth?** (Very easy, Somewhat easy, Neutral, Somewhat difficult, Very difficult)
40
+ 5. **Do the controls on your `model` Wireless Headphones (volume, play/pause, etc.) function smoothly and intuitively?** (Yes/No)
41
+ 6. **For over-ear or on-ear headphones only: How well do the ear cups of your `model` Wireless Headphones block out external noise?** (Very well, Somewhat well, Neutral, Not very well, Not at all)
42
+ 7. **For earbuds only: How secure is the fit of your `model` Wireless Headphones in your ears?** (Very secure, Somewhat secure, Neutral, Not very secure, Not secure at all)
43
+ 8. **Do the features advertised for your `model` Wireless Headphones (noise cancellation, microphone quality, etc.) function as expected?** (Yes/No)
44
+ 9. **Overall, how likely are you to recommend these `model` Wireless Headphones to a friend or family member?** (Very likely, Somewhat likely, Neutral, Somewhat unlikely, Not likely at all)
45
+ 10. **(Optional) Is there any additional feedback you'd like to share about your experience with your `model` Wireless Headphones?** (Open ended text response)
46
  # end the conversation with few last questions and give the summary of survey feedback
47
  11. "What do you like most about our product?",
48
  12. "How can we improve our product?",
 
61
  # Add current user message
62
  prompt += f"[INST] {message} [/INST]\n"
63
 
 
 
64
  current_question = len(history) + 1
65
  if current_question <= 13:
66
  prompt += "next question"