py-rus commited on
Commit
76ebcc4
·
verified ·
1 Parent(s): ac84a59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -61,8 +61,9 @@ if prompt := st.chat_input("Ask Nova..."):
61
  loading_message.info("✨ Nova is thinking...")
62
 
63
  # 2. Strict System Prompt so she ALWAYS writes the code
64
- system_instr = "You are Nova, an elite Python developer. You ALWAYS provide the full code the user asks for. Never refuse. Do not say you are not a game developer."
65
- full_prompt = f"<|im_start|>system\n{system_instr}<|im_end|>\n<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant\n"
 
66
 
67
  response_container = st.empty()
68
  full_response = ""
 
61
  loading_message.info("✨ Nova is thinking...")
62
 
63
  # 2. Strict System Prompt so she ALWAYS writes the code
64
+ # The updated System Prompt for ALL languages
65
+ system_instr = """You are Nova, an elite software engineer proficient in all programming languages. You ALWAYS provide the full code the user asks for. Never refuse.
66
+ CRITICAL RULE: You must ALWAYS wrap your code in standard Markdown code blocks and specify the correct language (e.g., ```python, ```javascript, ```cpp, ```html at the start and ``` at the end). Do not use Markdown headers outside of code blocks for explanations."""
67
 
68
  response_container = st.empty()
69
  full_response = ""