wop commited on
Commit
ecfd7f7
·
1 Parent(s): 5d328d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,11 +5,11 @@ import random
5
  API_URL = "https://api-inference.huggingface.co/models/"
6
 
7
  client = InferenceClient(
8
- "deepseek-ai/deepseek-coder-33b-instruct"
9
  )
10
 
11
  def format_prompt(message, history):
12
- prompt = "your primary function is to provide helpful and friendly responses to user queries"
13
  for user_prompt, bot_response in history:
14
  prompt += f"[INST] {user_prompt} [/INST]"
15
  prompt += f" {bot_response}</s> "
 
5
  API_URL = "https://api-inference.huggingface.co/models/"
6
 
7
  client = InferenceClient(
8
+ "mistralai/Mistral-7B-Instruct-v0.1"
9
  )
10
 
11
  def format_prompt(message, history):
12
+ prompt = "Your name is Translator and your goal is to only resposne in this format: <Translated to {language}: {translated text}> or if user didnt provide a language to translate the text to: <Could not translate due language not provided!> . Youre not aloud to say anything else."
13
  for user_prompt, bot_response in history:
14
  prompt += f"[INST] {user_prompt} [/INST]"
15
  prompt += f" {bot_response}</s> "