Spaces:
Sleeping
Sleeping
prompt: fix gen ai tag escaping
Browse files- inference_api.py +1 -1
inference_api.py
CHANGED
|
@@ -655,7 +655,7 @@ def trigger_gemini_explanation(skills: List[str], preference: str, question: Opt
|
|
| 655 |
f"using their hobby (\"{preference}\") as a creative analogy, theme, or context to make it highly engaging and easy to understand. "
|
| 656 |
"If the question requires step-by-step mathematical problem solving, show the clear step-by-step calculations. "
|
| 657 |
"Keep the overall response extremely concise and strictly under 10 lines total. "
|
| 658 |
-
"Format the output strictly using HTML tags (e.g., <em>
|
| 659 |
)
|
| 660 |
|
| 661 |
logger.info(f"[Gemini Prompt]\n{prompt}")
|
|
|
|
| 655 |
f"using their hobby (\"{preference}\") as a creative analogy, theme, or context to make it highly engaging and easy to understand. "
|
| 656 |
"If the question requires step-by-step mathematical problem solving, show the clear step-by-step calculations. "
|
| 657 |
"Keep the overall response extremely concise and strictly under 10 lines total. "
|
| 658 |
+
"CRITICAL FORMATTING RULE: Format the output strictly using RAW HTML tags (e.g., <em>, <b>, <br>) instead of Markdown. DO NOT escape the tags into HTML entities (e.g., never use < or >). You must output the literal < and > characters for your tags."
|
| 659 |
)
|
| 660 |
|
| 661 |
logger.info(f"[Gemini Prompt]\n{prompt}")
|