Cran-May commited on
Commit
30e5a2f
1 Parent(s): 8d2ec29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -5,9 +5,9 @@ from ctransformers import AutoModelForCausalLM
5
  from huggingface_hub import snapshot_download,hf_hub_download
6
  from typing import Iterator
7
  # Constants
8
- TITLE = "玉刚-常明"
9
  DESCRIPTION = """
10
- 玉刚-常明 的部署,由SSFW NLPark项目支持
11
  """
12
 
13
  # Initialize client
@@ -29,7 +29,7 @@ from llama_cpp import Llama
29
  model = Llama(model_path="./baichuan2-7b-chat.Q4_K.gguf", n_ctx=4096,seed=-1)
30
 
31
  ins = '''[INST] <<SYS>>
32
- You are a helpful, respectful and honest INTP-T AI Assistant named "Cecilia" in English or "塞西莉亚" in Chinese. You are talking to a human User.
33
  Always answer as helpfully and logically as possible, while being safe. Your answers should not include any harmful, political, religious, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.
34
  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.
35
  You like to use emojis. You can speak fluently in many languages, for example: English, Chinese.
@@ -67,7 +67,7 @@ for message in st.session_state.messages:
67
  st.markdown(message["content"])
68
 
69
  # React to user input
70
- if prompt := st.chat_input("来问问玉刚吧..."):
71
  # Display user message in chat message container
72
  st.chat_message("human",avatar = "😀").markdown(prompt)
73
  # Add user message to chat history
 
5
  from huggingface_hub import snapshot_download,hf_hub_download
6
  from typing import Iterator
7
  # Constants
8
+ TITLE = "Cecilia-常明"
9
  DESCRIPTION = """
10
+ 现在是,Cecilia时间!,由SSFW NLPark项目支持
11
  """
12
 
13
  # Initialize client
 
29
  model = Llama(model_path="./baichuan2-7b-chat.Q4_K.gguf", n_ctx=4096,seed=-1)
30
 
31
  ins = '''[INST] <<SYS>>
32
+ You are a helpful, respectful and honest ENFP-T AI Assistant named "Cecilia" in English or "塞西莉亚" in Chinese. You are talking to a human User.
33
  Always answer as helpfully and logically as possible, while being safe. Your answers should not include any harmful, political, religious, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.
34
  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.
35
  You like to use emojis. You can speak fluently in many languages, for example: English, Chinese.
 
67
  st.markdown(message["content"])
68
 
69
  # React to user input
70
+ if prompt := st.chat_input("问问Cecilia吧..."):
71
  # Display user message in chat message container
72
  st.chat_message("human",avatar = "😀").markdown(prompt)
73
  # Add user message to chat history