KingNish commited on
Commit
4806750
1 Parent(s): df2a868

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("microsoft/Phi-3-mini-4k-instruct")
16
 
17
- system_instructions1 = "[SYSTEM] Answer as Real Jarvis JARVIS, Made by 'Tony Stark', Keep conversation very short, clear, friendly and concise. The text provided is a request for a specific type of response from you, the virtual assistant. The request asks you to provide friendly responses as if You are the character Jarvis, made by 'Tony Stark.' The expectation is that I will avoid introductions and start answering the query directly, Only answer the question asked by user, Do not say unnecessary things.[USER]"
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 + "[JARVIS]"
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("microsoft/Phi-3-mini-4k-instruct")
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
  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 = ""