mtb2023 commited on
Commit
f3408bb
·
1 Parent(s): dfa418b

adjust model

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -8,9 +8,9 @@ def predict(message, history):
8
  history_openai_format = []
9
  history_openai_format.append({"role": "system", "content": "Answer the questions in japanese only"})
10
 
11
- for human, assistant in history:
12
- history_openai_format.append({"role": "user", "content": human })
13
- history_openai_format.append({"role": "assistant", "content":assistant})
14
  history_openai_format.append({"role": "user", "content": message})
15
 
16
  response = client.chat.completions.create(model='mistral-7b-instruct',
 
8
  history_openai_format = []
9
  history_openai_format.append({"role": "system", "content": "Answer the questions in japanese only"})
10
 
11
+ #for human, assistant in history:
12
+ #history_openai_format.append({"role": "user", "content": human })
13
+ #history_openai_format.append({"role": "assistant", "content":assistant})
14
  history_openai_format.append({"role": "user", "content": message})
15
 
16
  response = client.chat.completions.create(model='mistral-7b-instruct',