Spaces:
Paused
Paused
Update app.py
Browse files
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
|
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=
|
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|>",
|