fengtc commited on
Commit
b4e9773
·
1 Parent(s): 722ea07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -8,14 +8,7 @@ OPENAI_API_KEY=os.getenv('OPENAI_API_KEY')
8
  USER=os.getenv('USER')
9
  PASS=os.getenv('PASS')
10
 
11
- template = """You are a helpful assistant to answer all user queries.
12
- {history}
13
- User: {message}
14
- Chatbot:"""
15
-
16
- prompt = PromptTemplate(
17
- input_variables=["history", "message"], template=template
18
- )
19
 
20
  def predict(message, history):
21
  history_openai_format = []
 
8
  USER=os.getenv('USER')
9
  PASS=os.getenv('PASS')
10
 
11
+ prompt = "您是回答所有用户查询的得力助手,所有问题请用中文回答"
 
 
 
 
 
 
 
12
 
13
  def predict(message, history):
14
  history_openai_format = []