dkdaniz commited on
Commit
35fc364
1 Parent(s): 266970e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,7 +19,7 @@ llm = Llama(
19
  history = []
20
 
21
  system_message = """
22
- You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.
23
  If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
24
  """
25
 
@@ -38,7 +38,7 @@ def generate_text(message, history):
38
  top_p=0.1,
39
  top_k=40,
40
  repeat_penalty=1.1,
41
- max_tokens=512,
42
  stop=[
43
  "<|prompter|>",
44
  "<|endoftext|>",
 
19
  history = []
20
 
21
  system_message = """
22
+ You are a helpful expert in water, respectful and honest assistant. Always answer as helpfully as possible and while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, illegal content or that has nothing to do with water, climate, geography and NASA . Please ensure that your responses are socially unbiased and positive in nature.
23
  If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
24
  """
25
 
 
38
  top_p=0.1,
39
  top_k=40,
40
  repeat_penalty=1.1,
41
+ max_tokens=1024,
42
  stop=[
43
  "<|prompter|>",
44
  "<|endoftext|>",