adowu commited on
Commit
63ec6a2
1 Parent(s): ba91559

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -10
app.py CHANGED
@@ -115,16 +115,6 @@ def generate(
115
  [{"role": "user", "content": user_data}, {"role": "assistant", "content": model_data.rstrip()}]
116
  )
117
 
118
- if len(past_messages) < 1:
119
- dialogue_template = DialogueTemplate(
120
- system=system_message, messages=[{"role": "user", "content": user_message}]
121
- )
122
- prompt = dialogue_template.get_inference_prompt()
123
- else:
124
- dialogue_template = DialogueTemplate(
125
- system=system_message, messages=past_messages + [{"role": "user", "content": user_message}]
126
- )
127
- prompt = dialogue_template.get_inference_prompt()
128
 
129
  generate_kwargs = {
130
  "temperature": temperature,
 
115
  [{"role": "user", "content": user_data}, {"role": "assistant", "content": model_data.rstrip()}]
116
  )
117
 
 
 
 
 
 
 
 
 
 
 
118
 
119
  generate_kwargs = {
120
  "temperature": temperature,