Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 65 |
-
|
|
|
|
| 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 = ""
|