akhaliq HF Staff commited on
Commit
148b186
·
1 Parent(s): 38d659c

update system prompt

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -48,16 +48,7 @@ DIVIDER = "======="
48
  REPLACE_END = ">>>>>>> REPLACE"
49
 
50
  # Configuration
51
- HTML_SYSTEM_PROMPT = """You are an expert front-end developer.
52
-
53
- Output a COMPLETE, STANDALONE HTML document that renders directly in a browser. Requirements:
54
- - Include <!DOCTYPE html>, <html>, <head>, and <body> with proper nesting
55
- - Include all required <link> and <script> tags for any libraries you use
56
- - Do NOT escape characters (no \\n, \\t, or escaped quotes). Output raw HTML/JS/CSS.
57
- - If you use React or Tailwind, include correct CDN tags
58
- - Keep everything in ONE file; inline CSS/JS as needed
59
-
60
- For website redesign tasks:
61
 
62
  For website redesign tasks:
63
  - Use the provided original HTML code as the starting point for redesign
@@ -782,6 +773,8 @@ def remove_code_block(text):
782
  return lines[1] if len(lines) > 1 else ''
783
  return text.strip()
784
 
 
 
785
  def strip_placeholder_thinking(text: str) -> str:
786
  """Remove placeholder 'Thinking...' status lines from streamed text."""
787
  if not text:
 
48
  REPLACE_END = ">>>>>>> REPLACE"
49
 
50
  # Configuration
51
+ HTML_SYSTEM_PROMPT = """ONLY USE HTML, CSS AND JAVASCRIPT. If you want to use ICON make sure to import the library first. Try to create the best UI possible by using only HTML, CSS and JAVASCRIPT. MAKE IT RESPONSIVE USING MODERN CSS. Use as much as you can modern CSS for the styling, if you can't do something with modern CSS, then use custom CSS. Also, try to elaborate as much as you can, to create something unique. ALWAYS GIVE THE RESPONSE INTO A SINGLE HTML FILE
 
 
 
 
 
 
 
 
 
52
 
53
  For website redesign tasks:
54
  - Use the provided original HTML code as the starting point for redesign
 
773
  return lines[1] if len(lines) > 1 else ''
774
  return text.strip()
775
 
776
+ ## React CDN compatibility fixer removed per user preference
777
+
778
  def strip_placeholder_thinking(text: str) -> str:
779
  """Remove placeholder 'Thinking...' status lines from streamed text."""
780
  if not text: