update verbal message
Browse files- __pycache__/live_preview_helpers.cpython-310.pyc +0 -0
- __pycache__/optim_utils.cpython-310.pyc +0 -0
- __pycache__/utils.cpython-310.pyc +0 -0
- app.py +1 -1
- utils.py +1 -0
__pycache__/live_preview_helpers.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/live_preview_helpers.cpython-310.pyc and b/__pycache__/live_preview_helpers.cpython-310.pyc differ
|
|
|
__pycache__/optim_utils.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/optim_utils.cpython-310.pyc and b/__pycache__/optim_utils.cpython-310.pyc differ
|
|
|
__pycache__/utils.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/utils.cpython-310.pyc and b/__pycache__/utils.cpython-310.pyc differ
|
|
|
app.py
CHANGED
|
@@ -36,7 +36,7 @@ llm_pipe = None
|
|
| 36 |
torch.cuda.empty_cache()
|
| 37 |
inverted_prompt = ""
|
| 38 |
|
| 39 |
-
VERBAL_MSG = "Please
|
| 40 |
DEFAULT_SCENARIO = "Product advertisement"
|
| 41 |
METHODS = ["Baseline", "Experimental"]
|
| 42 |
MAX_ROUND = 5
|
|
|
|
| 36 |
torch.cuda.empty_cache()
|
| 37 |
inverted_prompt = ""
|
| 38 |
|
| 39 |
+
VERBAL_MSG = "Please explain your rating of satisfaction in few words or sentences."
|
| 40 |
DEFAULT_SCENARIO = "Product advertisement"
|
| 41 |
METHODS = ["Baseline", "Experimental"]
|
| 42 |
MAX_ROUND = 5
|
utils.py
CHANGED
|
@@ -134,6 +134,7 @@ def get_personalize_message(prompt, history_prompts, history_feedback, like_imag
|
|
| 134 |
|
| 135 |
### **Refinement Guidelines:**
|
| 136 |
- Identify and retain/expand patterns/elements in past revisions and correlate them with satisfaction ratings.
|
|
|
|
| 137 |
- Avoid or adjust features that led to lower ratings.
|
| 138 |
- Improve clarity, specificity, and descriptive quality while ensuring the prompt remains faithful to its current prompt's meaning.
|
| 139 |
- The preferred image reflects desirable attributes; the disliked image indicates elements to avoid. Use these for reference but **do not describe them.**
|
|
|
|
| 134 |
|
| 135 |
### **Refinement Guidelines:**
|
| 136 |
- Identify and retain/expand patterns/elements in past revisions and correlate them with satisfaction ratings.
|
| 137 |
+
- You may expand current prompt in details and incorporate information from retained pattens in past revisions.
|
| 138 |
- Avoid or adjust features that led to lower ratings.
|
| 139 |
- Improve clarity, specificity, and descriptive quality while ensuring the prompt remains faithful to its current prompt's meaning.
|
| 140 |
- The preferred image reflects desirable attributes; the disliked image indicates elements to avoid. Use these for reference but **do not describe them.**
|