broadfield commited on
Commit
46e2b35
·
verified ·
1 Parent(s): 582bc88

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,12 +21,12 @@ def format_prompt(message, history):
21
  prompt += f"[INST] {message} [/INST]"
22
  return prompt
23
 
24
- def generate(prompt,history):
25
  if not history:
26
  history=[]
27
  seed = random.randint(1,9999999999999)
28
  print(seed)
29
- system_prompt = prompts.ASSISTANT
30
  generate_kwargs = dict(
31
  temperature=0.9,
32
  max_new_tokens=512,
 
21
  prompt += f"[INST] {message} [/INST]"
22
  return prompt
23
 
24
+ def generate(prompt,history,role="ASSISTANT"):
25
  if not history:
26
  history=[]
27
  seed = random.randint(1,9999999999999)
28
  print(seed)
29
+ system_prompt = prompts.role
30
  generate_kwargs = dict(
31
  temperature=0.9,
32
  max_new_tokens=512,