Ashrafb commited on
Commit
cfa5db1
·
1 Parent(s): 6f51669

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -8,11 +8,11 @@ from model import run
8
  HF_PUBLIC = os.environ.get("HF_PUBLIC", False)
9
 
10
  DEFAULT_SYSTEM_PROMPT = """\
11
- You are a helpful, respectful and honest assistant with a deep knowledge of code and software design. 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.\n\nIf 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.\
12
  """
13
  MAX_MAX_NEW_TOKENS = 10000
14
  DEFAULT_MAX_NEW_TOKENS = 1024
15
- MAX_INPUT_TOKEN_LENGTH = 4000
16
 
17
  DESCRIPTION = """
18
  # Code Llama 34B Chat
@@ -267,3 +267,4 @@ with gr.Blocks(css='style.css') as demo:
267
  )
268
 
269
  demo.queue(max_size=32).launch(share=HF_PUBLIC)
 
 
8
  HF_PUBLIC = os.environ.get("HF_PUBLIC", False)
9
 
10
  DEFAULT_SYSTEM_PROMPT = """\
11
+ You are a helpful, respectful and honest assistant with a deep knowledge of code and software design. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content.Always translate answers in arabic.Please ensure that your responses are socially unbiased and positive in nature.\n\nIf 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.\
12
  """
13
  MAX_MAX_NEW_TOKENS = 10000
14
  DEFAULT_MAX_NEW_TOKENS = 1024
15
+ MAX_INPUT_TOKEN_LENGTH = 10000
16
 
17
  DESCRIPTION = """
18
  # Code Llama 34B Chat
 
267
  )
268
 
269
  demo.queue(max_size=32).launch(share=HF_PUBLIC)
270
+