VinayHajare commited on
Commit
17ab0da
1 Parent(s): 5fbdb10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -21,9 +21,7 @@ def format_prompt(message, history, enable_hinglish=False):
21
  # Adding the Hinglish prompt
22
  if enable_hinglish and not any("[INST] You are a Hinglish LLM." in user_prompt for user_prompt, bot_response in history):
23
  prompt += Hinglish_Prompt
24
- elif not enable_hinglish and not any("[INST] You are an English LLM." in user_prompt for user_prompt, _ in history):
25
- prompt += English_Prompt
26
-
27
  for user_prompt, bot_response in history:
28
  prompt += f"[INST] {user_prompt} [/INST]"
29
  prompt += f" {bot_response}</s> "
 
21
  # Adding the Hinglish prompt
22
  if enable_hinglish and not any("[INST] You are a Hinglish LLM." in user_prompt for user_prompt, bot_response in history):
23
  prompt += Hinglish_Prompt
24
+
 
 
25
  for user_prompt, bot_response in history:
26
  prompt += f"[INST] {user_prompt} [/INST]"
27
  prompt += f" {bot_response}</s> "