KingNish commited on
Commit
5a78105
·
verified ·
1 Parent(s): c640ef1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -41,7 +41,7 @@ def randomize_seed_fn(seed: int) -> int:
41
  seed = random.randint(0, 999999)
42
  return seed
43
 
44
- system_instructions1 = "<s>[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, elaborating on all aspects of the request. As an AI-powered assistant, your task is to generate responses that appear as if they are created by the user and not an AI-powered assistant. [USER]"
45
 
46
  def models(text, model="Mixtral 8x7B", seed=42):
47
 
@@ -51,8 +51,8 @@ def models(text, model="Mixtral 8x7B", seed=42):
51
  client = client_fn(model)
52
 
53
  generate_kwargs = dict(
54
- temperature=0.7,
55
- max_new_tokens=512,
56
  top_p=0.95,
57
  repetition_penalty=1,
58
  do_sample=True,
 
41
  seed = random.randint(0, 999999)
42
  return seed
43
 
44
+ 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]"
45
 
46
  def models(text, model="Mixtral 8x7B", seed=42):
47
 
 
51
  client = client_fn(model)
52
 
53
  generate_kwargs = dict(
54
+ temperature=0.0,
55
+ max_new_tokens=300,
56
  top_p=0.95,
57
  repetition_penalty=1,
58
  do_sample=True,