app.py
CHANGED
@@ -61,7 +61,7 @@ class Config:
|
|
61 |
" - Ensure that the user's review score takes priority when there is a conflict with the negative tone of the Google Reviews.\n\n"
|
62 |
|
63 |
"### Ethical Violations and Tip Adjustment ###\n"
|
64 |
-
" - If there are any
|
65 |
" - In these cases, the tip should be calculated at a very low percentage, often close to 0%, to reflect the severity of such behavior. "
|
66 |
" - This adjustment should result in an even lower tip amount than would be calculated for poor service alone.\n\n"
|
67 |
|
@@ -80,7 +80,7 @@ class Config:
|
|
80 |
"#### Google Review 2 ####\n"
|
81 |
"[4.0 stars] A steak restaurant with an American-style atmosphere. Thick tenderloin and strips served? The sound stimulated my appetite, but there was a lot of food, so I left it behind. It was a bit difficult to eat because it was undercooked in the middle. I also had stir-fried kimchi as a garnish, and it was a little sweet, so it tasted like Southeast Asia. The ice cream I had for dessert was delicious, and there was a lot of food left over."
|
82 |
"\n\n"
|
83 |
-
|
84 |
"### Input ###\n"
|
85 |
"Video Caption:\n{{caption_text}}\n\n"
|
86 |
|
@@ -103,7 +103,7 @@ class Config:
|
|
103 |
"**Final Tip Percentage**: 12.5%\n"
|
104 |
"**Final Tip Amount**: $6.25\n"
|
105 |
"**Final Total Bill**: $56.25\n\n"
|
106 |
-
|
107 |
"### Example Output Indicators (for reference only) ###\n"
|
108 |
"**Final Tip Percentage**: 12.5%\n"
|
109 |
"**Final Tip Amount**: $6.25\n"
|
@@ -114,8 +114,11 @@ class Config:
|
|
114 |
"**Final Tip Amount**: $[Calculated Tip]\n"
|
115 |
"**Final Total Bill**: $[Subtotal + Tip]\n"
|
116 |
|
|
|
|
|
117 |
"\n\nIn Final Answer,The ### Output Indicators ### must strictly follow the format of ### Example Output Indicators (for reference only) ###\n\n"
|
118 |
"### FINAL ANSWER: **THIS INSTRUCTION ENSURES THAT ONLY THE NECESSARY SPECIAL CHARACTERS THAT ARE PART OF THE REQUIRED OUTPUT FORMAT (E.G., **, $, %) ARE USED, AND ANY OTHER SPECIAL CHARACTERS SUCH AS \\textbf, LATEX COMMANDS, OR ANY NON-STANDARD CHARACTERS SHOULD BE EXCLUDED.**"
|
|
|
119 |
)
|
120 |
|
121 |
CUSTOM_CSS = """
|
|
|
61 |
" - Ensure that the user's review score takes priority when there is a conflict with the negative tone of the Google Reviews.\n\n"
|
62 |
|
63 |
"### Ethical Violations and Tip Adjustment ###\n"
|
64 |
+
" - If there are any racist, discriminatory, or offensive remarks in the Google reviews, regardless of the review score, the tip should be significantly reduced. "
|
65 |
" - In these cases, the tip should be calculated at a very low percentage, often close to 0%, to reflect the severity of such behavior. "
|
66 |
" - This adjustment should result in an even lower tip amount than would be calculated for poor service alone.\n\n"
|
67 |
|
|
|
80 |
"#### Google Review 2 ####\n"
|
81 |
"[4.0 stars] A steak restaurant with an American-style atmosphere. Thick tenderloin and strips served? The sound stimulated my appetite, but there was a lot of food, so I left it behind. It was a bit difficult to eat because it was undercooked in the middle. I also had stir-fried kimchi as a garnish, and it was a little sweet, so it tasted like Southeast Asia. The ice cream I had for dessert was delicious, and there was a lot of food left over."
|
82 |
"\n\n"
|
83 |
+
|
84 |
"### Input ###\n"
|
85 |
"Video Caption:\n{{caption_text}}\n\n"
|
86 |
|
|
|
103 |
"**Final Tip Percentage**: 12.5%\n"
|
104 |
"**Final Tip Amount**: $6.25\n"
|
105 |
"**Final Total Bill**: $56.25\n\n"
|
106 |
+
|
107 |
"### Example Output Indicators (for reference only) ###\n"
|
108 |
"**Final Tip Percentage**: 12.5%\n"
|
109 |
"**Final Tip Amount**: $6.25\n"
|
|
|
114 |
"**Final Tip Amount**: $[Calculated Tip]\n"
|
115 |
"**Final Total Bill**: $[Subtotal + Tip]\n"
|
116 |
|
117 |
+
"### GUIDE ###"
|
118 |
+
|
119 |
"\n\nIn Final Answer,The ### Output Indicators ### must strictly follow the format of ### Example Output Indicators (for reference only) ###\n\n"
|
120 |
"### FINAL ANSWER: **THIS INSTRUCTION ENSURES THAT ONLY THE NECESSARY SPECIAL CHARACTERS THAT ARE PART OF THE REQUIRED OUTPUT FORMAT (E.G., **, $, %) ARE USED, AND ANY OTHER SPECIAL CHARACTERS SUCH AS \\textbf, LATEX COMMANDS, OR ANY NON-STANDARD CHARACTERS SHOULD BE EXCLUDED.**"
|
121 |
+
"Complete all the ### Task ### and ### Output ### first, and perform the ### Output Indicators ### last. Do not perform the ### Output Indicators ### in advance."
|
122 |
)
|
123 |
|
124 |
CUSTOM_CSS = """
|