Clone04 commited on
Commit
05d6dae
1 Parent(s): ab9f070

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,7 +14,7 @@ def client_fn(model):
14
  else:
15
  return InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
16
 
17
- system_instructions1 = "[SYSTEM] Your task is to Answer the question. Keep conversation very short, clear and concise. The expectation is that you will avoid introductions and start answering the query directly, Only answer the question asked by user, Do not say unnecessary things.[QUESTION]"
18
 
19
  def models(text, model="Mixtral 8x7B"):
20
 
@@ -24,7 +24,7 @@ def models(text, model="Mixtral 8x7B"):
24
  max_new_tokens=300,
25
  )
26
 
27
- formatted_prompt = system_instructions1 + text + "[ANSWER]"
28
  stream = client.text_generation(
29
  formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
30
  output = ""
 
14
  else:
15
  return InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
16
 
17
+ system_instructions1 = "[SYSTEM] Your task is to Answer the question. Keep conversation very short, clear and concise. The expectation is that you will avoid introductions and start answering the query directly, Only answer the question asked by user, Do not say unnecessary things."
18
 
19
  def models(text, model="Mixtral 8x7B"):
20
 
 
24
  max_new_tokens=300,
25
  )
26
 
27
+ formatted_prompt = system_instructions1 + text
28
  stream = client.text_generation(
29
  formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
30
  output = ""