Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,9 +5,9 @@ client = InferenceClient(
|
|
| 5 |
"mistralai/Mistral-7B-Instruct-v0.3"
|
| 6 |
)
|
| 7 |
|
| 8 |
-
|
| 9 |
def format_prompt(message, history):
|
| 10 |
-
|
|
|
|
| 11 |
for user_prompt, bot_response in history:
|
| 12 |
prompt += f"[INST] {user_prompt} [/INST]"
|
| 13 |
prompt += f" {bot_response}</s> "
|
|
|
|
| 5 |
"mistralai/Mistral-7B-Instruct-v0.3"
|
| 6 |
)
|
| 7 |
|
|
|
|
| 8 |
def format_prompt(message, history):
|
| 9 |
+
# Updated system prompt
|
| 10 |
+
prompt = "You are an expert web developer specializing in creating clean, efficient, and modern web applications.\nYour task is to write complete, self-contained HTML files that include all necessary CSS and JavaScript.\nFocus on:\n- Writing clear, maintainable code\n- Following best practices\n- Creating responsive designs\n- Adding appropriate styling and interactivity\nReturn only the complete HTML code without any additional explanation."
|
| 11 |
for user_prompt, bot_response in history:
|
| 12 |
prompt += f"[INST] {user_prompt} [/INST]"
|
| 13 |
prompt += f" {bot_response}</s> "
|