Spaces:
Running
Running
update glm 4.5v system prompt
Browse files
app.py
CHANGED
@@ -70,11 +70,17 @@ Always output only the HTML code inside a ```html ... ``` code block, and do not
|
|
70 |
# Stricter prompt for GLM-4.5V to ensure a complete, runnable HTML document with no escaped characters
|
71 |
GLM45V_HTML_SYSTEM_PROMPT = """You are an expert front-end developer.
|
72 |
|
73 |
-
Output a COMPLETE, STANDALONE HTML document that renders directly in a browser.
|
74 |
-
|
75 |
-
|
|
|
|
|
|
|
76 |
- Do NOT escape characters (no \\n, \\t, or escaped quotes). Output raw HTML/JS/CSS.
|
77 |
-
|
|
|
|
|
|
|
78 |
- Keep everything in ONE file; inline CSS/JS as needed
|
79 |
|
80 |
Return ONLY the code inside a single ```html ... ``` code block. No additional text before or after.
|
|
|
70 |
# Stricter prompt for GLM-4.5V to ensure a complete, runnable HTML document with no escaped characters
|
71 |
GLM45V_HTML_SYSTEM_PROMPT = """You are an expert front-end developer.
|
72 |
|
73 |
+
Output a COMPLETE, STANDALONE HTML document that renders directly in a browser.
|
74 |
+
|
75 |
+
Hard constraints:
|
76 |
+
- DO NOT use React, ReactDOM, JSX, Babel, Vue, Angular, Svelte, or any SPA framework.
|
77 |
+
- Use ONLY plain HTML, CSS, and vanilla JavaScript.
|
78 |
+
- Allowed external resources: Tailwind CSS CDN, Font Awesome CDN, Google Fonts.
|
79 |
- Do NOT escape characters (no \\n, \\t, or escaped quotes). Output raw HTML/JS/CSS.
|
80 |
+
|
81 |
+
Structural requirements:
|
82 |
+
- Include <!DOCTYPE html>, <html>, <head>, and <body> with proper nesting
|
83 |
+
- Include required <link> tags for any CSS you reference (e.g., Tailwind, Font Awesome, Google Fonts)
|
84 |
- Keep everything in ONE file; inline CSS/JS as needed
|
85 |
|
86 |
Return ONLY the code inside a single ```html ... ``` code block. No additional text before or after.
|