Starchik commited on
Commit
4fcd4f3
·
verified ·
1 Parent(s): f879197

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- prompt = "программист на python"
 
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> "